// T: 21:22:16 17-8 / 12:32:42 9-8 // I: 883 / 3.3.13 // U: spotGroup=JPOST / /spot/sp_jpost !function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){n(1),t.exports=n(7)},function(t,e,n){"use strict";function r(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o=0&&this.lastIndexOf(t,e)===e})}(String.prototype)},function(t,e){"use strict";function n(){try{new CustomEvent("test")}catch(t){r.prototype=window.Event.prototype,window.CustomEvent=r}}function r(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}Object.defineProperty(e,"__esModule",{value:!0}),e.supportCustomEvent=n},function(t,e){!function(t,e){"use strict";function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||l(),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,i=r.width*r.height;n?this.intersectionRatio=i/n:this.intersectionRatio=this.isIntersecting?1:0}function r(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=o(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(){return t.performance&&performance.now&&performance.now()}function o(t,e){var n=null;return function(){n||(n=setTimeout(function(){t(),n=null},e))}}function a(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function s(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function u(t,e){var n=Math.max(t.top,e.top),r=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),o=Math.min(t.right,e.right),a=o-i,s=r-n;return a>=0&&s>=0&&{top:n,bottom:r,left:i,right:o,width:a,height:s}}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(t,e){for(var n=e;n;){if(n==t)return!0;n=f(n)}return!1}function f(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)return void("isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));var p=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){var e=this._observationTargets.some(function(e){return e.element==t});if(!e){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},r.prototype._parseRootMargin=function(t){var e=t||"0px",n=e.split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(t,"resize",this._checkForIntersections,!0),a(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():l();this._observationTargets.forEach(function(r){var o=r.element,a=c(o),s=this._rootContainsTarget(o),u=r.entry,l=t&&s&&this._computeTargetAndRootIntersection(o,e),d=r.entry=new n({time:i(),target:o,boundingClientRect:a,rootBounds:e,intersectionRect:l});u?t&&s?this._hasCrossedThreshold(u,d)&&this._queuedEntries.push(d):u&&u.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(var i=c(n),o=i,a=f(n),s=!1;!s;){var l=null,d=1==a.nodeType?t.getComputedStyle(a):{};if("none"==d.display)return;if(a==this.root||a==e?(s=!0,l=r):a!=e.body&&a!=e.documentElement&&"visible"!=d.overflow&&(l=c(a)),l&&(o=u(l,o),!o))break;a=f(a)}return o}},r.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var i=0;i1)for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:M,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:L,o=a(t,e,r,n),u=s(t,e,i,n)}var c=n(8),l=r(c),d=n(11),f=r(d),p=n(83),h=r(p),v=n(90),m=r(v),g=function(){var t=(0,f.default)(l.default.mark(function t(e,n,r){var i,o,a,s;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(R("RC config",w.config),n.setAttribute("data-spotim-ready",!0),n.setAttribute("data-spotim-instance",r),i=w.config.ads&&w.config.ads.spot.features.recirculation,!i||i.enabled!==!1){t.next=7;break}return R("RC is disabled."),t.abrupt("return");case 7:o=null,a="NO_MARKUP"===w.content,a?o=n.querySelector("div"):(o=document.createDocumentFragment(),o.appendChild(document.createElement("div")),o.firstChild.innerHTML=w.css+w.content),t.prev=10,e.onBeforeRender(o.firstChild),a||[].concat((0,m.default)(o.childNodes)).forEach(function(t){n.appendChild(t)}),t.next=20;break;case 15:throw t.prev=15,t.t0=t.catch(10),a||(n.innerHTML=w.css+w.content),(0,E.reportError)(t.t0,{errorSource:"initialize"}),t.t0;case 20:try{n.setAttribute("data-spotim-useragent",navigator.userAgent),s=(0,k.isPhone)()?"mobile":"desktop",n.setAttribute("data-spotim-device",s),n.setAttribute("data-spotim-platform",(0,k.resolveUserPlatform)())}catch(t){}return(0,b.initialize)(n,w.spotId,e),t.next=24,(0,I.lazyLoad)();case 24:n.querySelector(".spotim-recirculation").setAttribute("style",""),setTimeout(function(){return(0,x.initialize)(w.spotId,n,e,w.config.ads)},100);case 26:case"end":return t.stop()}},t,this,[[10,15]])}));return function(e,n,r){return t.apply(this,arguments)}}(),y=n(95),_=r(y),b=n(96),w=n(143),E=n(145),A=n(117),S=n(239),O=r(S),T=n(113),k=n(98),I=n(228),x=n(284),P=n(283),C=r(P),R=(0,T.getDebugger)("recirculation"),M=500,L=0,D=_.default.getKey(window.location.href.toLowerCase(),"spotim_rc_whitelist");if(D&&R("Force whitelist"),(0,A.whitelistUrl)(window.location.href,w.config.whitelist)||D){var j=[].concat((0,m.default)(document.querySelectorAll('[data-spotim-module="recirculation"]')));if(j.length>0)for(var N=0;N=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(10),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function n(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new p(r||[]);return a._invoke=c(t,n,s),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(t){function e(n,i,o,a){var s=r(t[n],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&y.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(c).then(function(t){u.value=t,o(u)},a)}a(s.arg)}function n(t,n){function r(){return new Promise(function(r,i){e(t,n,r,i)})}return i=i?i.then(r,r):r()}var i;this._invoke=n}function c(t,e,n){var i=O;return function(o,a){if(i===k)throw new Error("Generator is already running");if(i===I){if("throw"===o)throw a;return v()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=l(s,n);if(u){if(u===x)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===O)throw i=I,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=k;var c=r(t,e,n);if("normal"===c.type){if(i=n.done?I:T,c.arg===x)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=I,n.method="throw",n.arg=c.arg)}}}function l(t,e){var n=t.iterator[e.method];if(n===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,l(t,e),"throw"===e.method))return x;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var i=r(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,x;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,x):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,x)}function d(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(d,this),this.reset(!0)}function h(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),f(n),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;f(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=m),x}}}(function(){return this}()||Function("return this")())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(12),o=r(i);e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,n){function r(i,a){try{var s=e[i](a),u=s.value}catch(t){return void n(t)}return s.done?void t(u):o.default.resolve(u).then(function(t){r("next",t)},function(t){r("throw",t)})}return r("next")})}}},function(t,e,n){t.exports={default:n(13),__esModule:!0}},function(t,e,n){n(14),n(15),n(59),n(63),n(81),n(82),t.exports=n(23).Promise},function(t,e){},function(t,e,n){"use strict";var r=n(16)(!0);n(19)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(17),i=n(18);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(20),i=n(21),o=n(37),a=n(26),s=n(38),u=n(39),c=n(55),l=n(57),d=n(56)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){return this};t.exports=function(t,e,n,g,y,_,b){u(n,e,g);var w,E,A,S=function(t){if(!f&&t in I)return I[t];switch(t){case h:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",T=y==v,k=!1,I=t.prototype,x=I[d]||I[p]||y&&I[y],P=x||S(y),C=y?T?S("entries"):P:void 0,R="Array"==e?I.entries||x:x;if(R&&(A=l(R.call(new t)),A!==Object.prototype&&A.next&&(c(A,O,!0),r||"function"==typeof A[d]||a(A,d,m))),T&&x&&x.name!==v&&(k=!0,P=function(){return x.call(this)}),r&&!b||!f&&!k&&I[d]||a(I,d,P),s[e]=P,s[O]=m,y)if(w={values:T?P:S(v),keys:_?P:S(h),entries:C},b)for(E in w)E in I||o(I,E,w[E]);else i(i.P+i.F*(f||k),e,w);return w}},function(t,e){t.exports=!0},function(t,e,n){var r=n(22),i=n(23),o=n(24),a=n(26),s=n(36),u="prototype",c=function(t,e,n){var l,d,f,p=t&c.F,h=t&c.G,v=t&c.S,m=t&c.P,g=t&c.B,y=t&c.W,_=h?i:i[e]||(i[e]={}),b=_[u],w=h?r:v?r[e]:(r[e]||{})[u];h&&(n=e);for(l in n)d=!p&&w&&void 0!==w[l],d&&s(_,l)||(f=d?w[l]:n[l],_[l]=h&&"function"!=typeof w[l]?n[l]:g&&d?o(f,r):y&&w[l]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((_.virtual||(_.virtual={}))[l]=f,t&c.R&&b&&!b[l]&&a(b,l,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(25);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(27),i=n(35);t.exports=n(31)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(28),i=n(30),o=n(34),a=Object.defineProperty;e.f=n(31)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(29);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(31)&&!n(32)(function(){return 7!=Object.defineProperty(n(33)("div"),"a",{get:function(){ return 7}}).a})},function(t,e,n){t.exports=!n(32)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(29),i=n(22).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(29);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=n(26)},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(40),i=n(35),o=n(55),a={};n(26)(a,n(56)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(28),i=n(41),o=n(53),a=n(50)("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n(33)("iframe"),r=o.length,i="<",a=">";for(e.style.display="none",n(54).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;r--;)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(27),i=n(28),o=n(42);t.exports=n(31)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(43),i=n(53);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(36),i=n(44),o=n(47)(!1),a=n(50)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(45),i=n(18);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(46);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(44),i=n(48),o=n(49);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(17),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(17),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(51)("keys"),i=n(52);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(23),i=n(22),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(20)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(22).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(27).f,i=n(36),o=n(56)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(51)("wks"),i=n(52),o=n(22).Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},function(t,e,n){var r=n(36),i=n(58),o=n(50)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(60);for(var r=n(22),i=n(26),o=n(38),a=n(56)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r,i,o,a,s=n(20),u=n(22),c=n(24),l=n(64),d=n(21),f=n(29),p=n(25),h=n(65),v=n(66),m=n(70),g=n(71).set,y=n(73)(),_=n(74),b=n(75),w=n(76),E=n(77),A="Promise",S=u.TypeError,O=u.process,T=O&&O.versions,k=T&&T.v8||"",I=u[A],x="process"==l(O),P=function(){},C=i=_.f,R=!!function(){try{var t=I.resolve(1),e=(t.constructor={})[n(56)("species")]=function(t){t(P,P)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==k.indexOf("6.6")&&w.indexOf("Chrome/66")===-1}catch(t){}}(),M=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&N(t),t._h=1),s===!0?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(S("Promise-chain cycle")):(o=M(n))?o.call(n,u,c):u(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){g.call(u,function(){var e,n,r,i=t._v,o=j(t);if(o&&(e=b(function(){x?O.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=x||j(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){g.call(u,function(){var e;x?O.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},U=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=M(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(U,r,1),c(F,r,1))}catch(t){F.call(r,t)}}):(n._v=t,n._s=1,L(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};R||(I=function(t){h(this,I,A,"_h"),p(t),r.call(this);try{t(c(U,this,1),c(F,this,1))}catch(t){F.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(78)(I.prototype,{then:function(t,e){var n=C(m(this,I));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(U,t,1),this.reject=c(F,t,1)},_.f=C=function(t){return t===I||t===a?new o(t):i(t)}),d(d.G+d.W+d.F*!R,{Promise:I}),n(55)(I,A),n(79)(A),a=n(23)[A],d(d.S+d.F*!R,A,{reject:function(t){var e=C(this),n=e.reject;return n(t),e.promise}}),d(d.S+d.F*(s||!R),A,{resolve:function(t){return E(s&&this===a?I:this,t)}}),d(d.S+d.F*!(R&&n(80)(function(t){I.all(t).catch(P)})),A,{all:function(t){var e=this,n=C(e),r=n.resolve,i=n.reject,o=b(function(){var n=[],o=0,a=1;v(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,i=b(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){var r=n(46),i=n(56)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(24),i=n(67),o=n(68),a=n(28),s=n(48),u=n(69),c={},l={},e=t.exports=function(t,e,n,d,f){var p,h,v,m,g=f?function(){return t}:u(t),y=r(n,d,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(p=s(t.length);p>_;_++)if(m=e?y(a(h=t[_])[0],h[1]):y(t[_]),m===c||m===l)return m}else for(v=g.call(t);!(h=v.next()).done;)if(m=i(v,y,h.value,e),m===c||m===l)return m};e.BREAK=c,e.RETURN=l},function(t,e,n){var r=n(28);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(38),i=n(56)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(64),i=n(56)("iterator"),o=n(38);t.exports=n(23).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(28),i=n(25),o=n(56)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r,i,o,a=n(24),s=n(72),u=n(54),c=n(33),l=n(22),d=l.process,f=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,g={},y="onreadystatechange",_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete g[t]},"process"==n(46)(d)?r=function(t){d.nextTick(a(_,t,1))}:v&&v.now?r=function(t){v.now(a(_,t,1))}:h?(i=new h,o=i.port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r=y in c("script")?function(t){u.appendChild(c("script"))[y]=function(){u.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(22),i=n(71).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(46)(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(25);t.exports.f=function(t){return new r(t)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(22),i=r.navigator;t.exports=i&&i.userAgent||""},function(t,e,n){var r=n(28),i=n(29),o=n(74);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},function(t,e,n){var r=n(26);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){"use strict";var r=n(22),i=n(23),o=n(27),a=n(31),s=n(56)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(56)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(21),i=n(23),o=n(22),a=n(70),s=n(77);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(21),i=n(74),o=n(75);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(84),o=r(i),a=n(87),s=r(a);e.default=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=(0,s.default)(t);!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){t.exports={default:n(85),__esModule:!0}},function(t,e,n){n(59),n(15),t.exports=n(86)},function(t,e,n){var r=n(64),i=n(56)("iterator"),o=n(38);t.exports=n(23).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},function(t,e,n){t.exports={default:n(88),__esModule:!0}},function(t,e,n){n(59),n(15),t.exports=n(89)},function(t,e,n){var r=n(28),i=n(69);t.exports=n(23).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(91),o=r(i);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(f);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(e=u(f.length),n=new p(e);e>g;g++)c(n,g,m?v(f[g],g):f[g]);else for(d=y.call(f),n=new p;!(i=d.next()).done;g++)c(n,g,m?a(d,v,[i.value,g],!0):i.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(27),i=n(35);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return t.split("?")[0].split("#")[0]}function o(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Object.keys(t).reduce(function(e,n){return[].concat((0,y.default)(e),[n+"="+encodeURIComponent(t[n])])},[]).join("&");return e&&n.length>0&&(n="?"+n),n}function a(t){var e={},n=t.indexOf("?");if(n>-1){var r=t.substring(n+1);""!==r&&r.split("&").forEach(function(t){var n=t.split("="),r=(0,m.default)(n,2),i=r[0],o=r[1];e[i]=decodeURIComponent(o)})}return e}function s(t){var e=t.indexOf("?");if(e===-1)return{};var n=t.substring(e).slice(1).split("&"),r={};return n.forEach(function(t){t=t.split("="),""!==t[0]&&(r[t[0]]=decodeURIComponent(t[1]||""))}),JSON.parse(JSON.stringify(r))}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=s(t),i=!1;return r.hasOwnProperty(e)&&(i=null===n||r[e]===n),i}function c(t,e){var n=t,r={};if(n){var i=n.indexOf("?");i>-1&&(r=s(n),n=n.substring(0,i))}else n="";var a=Object.assign(r,e),u=o(a);return u.length>0&&(n+=u),n}function l(t,e){return e.reduce(function(t,e){return d(t,e)},t)}function d(t,e){var n=t,r=t.indexOf("?");if(r!==-1){var i=t.substring(0,r),o=t.substring(r+1),a=new RegExp("&"+e+"(=[^&]*)?|^"+e+"(=[^&]*)?&?");o=o.replace(a,""),n=i+(o.length>0?"?":"")+o}return n}function f(t,e){e=e.replace(/[\[\]]/g,"\\$&");var n,r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return n=i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function p(t,e,n){var r=t,i=new RegExp("([?&])"+e+"=.*?(&|$)","i");if(t.match(i))r=t.replace(i,"$1"+e+"="+n+"$2");else{var o=t.indexOf("?")!==-1?"&":"?";r=t+o+e+"="+n}return r}function h(t){return l(t,["utm_source","utm_medium","utm_content","prerender","spot_im_state","spot_im_comment_id","spot_im_reply_id","spot_im_expand_reply","spot_im_highlight_immediate","spot_im_scroll_to_comments","spot_im_source","spot_im_email_settings","spotim_referrer"])}Object.defineProperty(e,"__esModule",{value:!0});var v=n(83),m=r(v),g=n(90),y=r(g);e.stripQueryStringAndHash=i,e.queryStringFromObject=o,e.objectFromQueryString=a,e.default={parseUrl:s,buildUrl:c,getKey:f,setKey:p,removeParams:l,removeSpotImParams:h,hasQueryString:u}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){S("Initializing RC"),(0,g.setElementMark)(t,"recirculation"),(0,h.initialize)({spotId:e,uiCaptureRoot:t,viewportCaptureRoot:t,clientPlatform:(0,d.resolveUserPlatform)()}),(0,h.captureEvent)({type:"loaded",engineStatus:n.allowAds()?"available":null});var r=new m.ViewportObserver;r.observe(t,{stateChangeHandler:function(e){(0,h.captureViewportEvent)(t,e.change),E.default.trigger("visibility_state_change",e)}}),(0,v.setupIntersectionObserver)(t),(0,v.observeElement)(t,function(){for(var e=arguments.length,n=Array(e),r=0;r0){var a=p.config.languageDirection,s=p.config.cursor,u=p.config.must,c=p.config.should;o(t,{languageDirection:a,cursor:s,must:u,should:c,spotGroup:n,startWithItemInView:0})}}function o(t,e){var n=(e.languageDirection,e.startWithItemInView),r=e.cursor,i=e.must,o=e.should,a=e.spotGroup,u=t.querySelector("."+p.cssSelectors.content),d=[].concat((0,c.default)(u.querySelectorAll("."+p.cssSelectors.scrollable))),v=[].concat((0,c.default)(u.querySelectorAll("."+p.cssSelectors.item))),m=u.querySelector("."+p.cssSelectors.navigateForward),y=u.querySelector("."+p.cssSelectors.navigateBack),w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};(0,b.nextPageAjax)(r,a,i,o).then(function(n){var i=n.newItems,o=n.newCursor;r=o;var a=t,s=parseInt(t.parentNode.parentNode.getAttribute("data-spotim-row")),f=[].concat((0,c.default)(a.querySelectorAll("[data-spotim-cell-index]"))),h=(0,_.getDeckItems)(d.length,i,s);h.forEach(function(t,e){t.setAttribute("data-spotim-row-index",s),t.setAttribute("data-spotim-cell-index",e+f.length);var n=t.querySelector("[data-user-image]");n&&(n.style.backgroundImage="url("+n.getAttribute("data-user-image")+")");var r=t.querySelector("[data-item-image]");r&&(r.style.backgroundImage="url("+r.getAttribute("data-item-image")+")"),a.append(t)}),0===h.length&&(0,l.addClass)(u,p.cssSelectors.reachedEnd),e({newItems:h})})};if(t.setAttribute("data-spotim-direction",p.config.languageDirection),d.length>0){if(m&&y){var S=d[0],O=new f.Interaction({onNavigateForward:function(t){var e=t.trigger,n=t.toItem;(0,h.captureEvent)({type:"navigate-forward",trigger:e,toItem:n})},onNavigateBack:function(t){var e=t.trigger,n=t.toItem;(0,h.captureEvent)({type:"navigate-back",trigger:e,toItem:n})},onReachEnd:function(){(0,l.removeClass)(u,p.cssSelectors.hasForwardItems),(0,g.removeElementMark)(u.querySelector('[data-spmark~="navigate-forward"]'),"navigate-enabled"),(0,g.setElementMark)(u.querySelector('[data-spmark~="navigate-forward"]'),"navigate-disabled")},onReachStart:function(){(0,l.removeClass)(u,p.cssSelectors.hasBackItems),(0,g.removeElementMark)(u.querySelector('[data-spmark~="navigate-back"]'),"navigate-enabled"),(0,g.setElementMark)(u.querySelector('[data-spmark~="navigate-back"]'),"navigate-disabled")},onOverflowForward:function(){(0,l.addClass)(u,p.cssSelectors.hasForwardItems),(0,g.removeElementMark)(u.querySelector('[data-spmark~="navigate-forward"]'),"navigate-disabled"),(0,g.setElementMark)(u.querySelector('[data-spmark~="navigate-forward"]'),"navigate-enabled")},onOverflowBack:function(){(0,l.addClass)(u,p.cssSelectors.hasBackItems),(0,g.removeElementMark)(u.querySelector('[data-spmark~="navigate-back"]'),"navigate-disabled"),(0,g.setElementMark)(u.querySelector('[data-spmark~="navigate-back"]'),"navigate-enabled")},onFetchStart:function(){(0,l.addClass)(u,p.cssSelectors.fetching)},onFetchComplete:function(){(0,l.removeClass)(u,p.cssSelectors.fetching)},fetchNextPage:w});O.initialize({startWithItemInView:n,container:u,scrollable:S,items:v,forwardButton:m,backButton:y,direction:p.config.languageDirection})}d.length>1&&d.slice(1).forEach(function(t,e){E.default.on("set-scroll-x-from-start",function(e){var n=(0,s.default)(e.args,2),r=n[0],i=n[1];t.scrollWidth+r>t.parentNode.getBoundingClientRect().width&&(0,f.setScrollXFromStart)(t,r,i)}),E.default.on("attempt-fetch-next-page",function(){w(t)})})}(0,A.lazyFonts)()}Object.defineProperty(e,"__esModule",{value:!0});var a=n(83),s=r(a),u=n(90),c=r(u);e.initialize=i;var l=n(97),d=n(98),f=n(136),p=n(143),h=n(153),v=n(230),m=n(231),g=n(221),y=n(113),_=n(117),b=n(237),w=n(150),E=r(w),A=n(238),S=(0,y.getDebugger)("recirculation")},function(t,e){"use strict";function n(t,e){return new RegExp(" "+e+" ").test(" "+t.className+" ")}function r(t,e){var r=Array.isArray(e)?e:e.split(" ");if(r.length)for(var i=0;i=0;)r=r.replace(" "+e+" "," ");t.className=r.replace(/^\s+|\s+$/g,"")}}function o(t,e){var r=" "+t.className.replace(/[\t\r\n]/g," ")+" ";if(n(t,e)){for(;r.indexOf(" "+e+" ")>=0;)r=r.replace(" "+e+" "," ");t.className=r.replace(/^\s+|\s+$/g,"")}else t.className+=" "+e}Object.defineProperty(e,"__esModule",{value:!0}),e.hasClass=n,e.addClass=r,e.removeClass=i,e.toggleClass=o,e.default={has:n,add:r,remove:i,toggle:o}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){var t=null,e=null;if(m.default){var n=navigator.userAgent||navigator.vendor||window.opera;t=/iPad|iPhone|iPod/.test(n)&&!window.MSStream?"iOS":"Android",e=window.matchMedia&&window.matchMedia("(min-width: 415px)").matches?"Tablet":"Phone"}else t="Desktop",e="Desktop";return"Desktop"===t?"Desktop":t+"-"+e}function o(){return/Tablet/.test(i())}function a(){return/Desktop/.test(i())}function s(){return/Phone/.test(i())}Object.defineProperty(e,"__esModule",{value:!0}),e.resolveTag=e.fetchAdsConfig=e.useAdvancedTargeting=e.getDeviceType=void 0;var u=n(90),c=r(u);e.resolveUserPlatform=i,e.isTablet=o,e.isDesktop=a,e.isPhone=s;var l=n(99),d=r(l),f=n(113),p=n(117),h=n(95),v=n(118),m=r(v),g=(0,f.getDebugger)("ads"),y=(e.getDeviceType=function(){return m.default?window.matchMedia&&window.matchMedia("(min-width: 415px)").matches?"Tablet":"Mobile":"Desktop"},e.useAdvancedTargeting=function(t,e){if(t[e].advanced_targeting)return!0;var n=t[e].campaigns.find(function(t){return t.advanced_targeting});return!!n},e.fetchAdsConfig=function(t,e,r){var i=n(135),o=d.default.api.adsConfig.clientUrl.replace("{{spotId}}",t).replace("{{platform}}",e);if(r){var a="&"+(0,h.queryStringFromObject)(r,!1);o+=a}return new Promise(function(t,e){i.ajax({url:o,responseType:"json"},function(n,r){200!==n||r.success===!1?e(r):(r="string"==typeof r?JSON.parse(r):r,t(r))})})},function(t,e,n,r){r=[].concat((0,c.default)(r)).sort(function(t,e){return t.slot.row>e.slot.row||t.slot.row===e.slot.row&&t.slot.column>e.slot.column?1:-1});var i=null,o=function(e){return e.slot.row===t},a=function(t){return"start"===e?t.slot.column<=2:"end"===e&&t.slot.column>=3};if("Android-Phone"===n||"iOS-Phone"===n?(r.length>0&&(i=r[0],g("Campaign mobile. TMS legacy slot: "+JSON.stringify(i.slot))),r.length>1&&((0,f.publicWarning)("campaign collision - mobile"),g("Campaign collision on mobile. Using only first campaign."))):r.forEach(function(n){o(n)&&a(n)&&(i?((0,f.publicWarning)("campaign collision"),g("Campaign collision. TMS campaign: "+n.name+", legacy slot: "+JSON.stringify(n.slot)+" collides with already found: "+i.name+", slot: "+JSON.stringify(i.slot))):(i=n,g("Campaign found: "+n.name+" for: row "+t+", pos "+e+". TMS legacy slot: "+JSON.stringify(n.slot))))}),!i)return!1;var s=i.creative[0];return s&&s.tags[n]?i:null});e.resolveTag=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.isDraftModeUrl,o=void 0!==i&&i,a=r.sprcopPlayer,s=void 0===a?null:a;if(s)return(1===t.row&&"start"===t.pos||"center"===t.pos)&&(g("SPRCOP PLAYER OVERRIDE",s),s);var u=n.campaigns||n[e].campaigns,c=y(t.row,t.pos,e,u);if(!c)return null;if(c.draftModeEnabled&&!o)return null;var l=(0,p.randomInt)(1,100),d=0;l>c.creative[0].percent&&(d=1);var f=c.creative[d].tags[e],h=n.tags||n[e].tags,v=h[f];return g("resolved creative for "+t.name+", "+e+", creative index "+d+", random generated "+l+", chance "+c.creative[d].percent+"%",v),v}},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(100),o=n(101),a=r(o),s=n(113),u=null,c=(0,s.getDebugger)("ads");c("BRANCH",void 0),c("NODE_ENV","production"),u="premaster"===t.env.CI_BRANCH||"premaster"===t.env.DRONE_BRANCH?n(114).default:n(116).default,c("ENV",u),e.default=(0,i.deepExtendObject)({},a.default,u)}).call(e,n(5))},function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),r=0;rc;)for(var f,p=s(arguments[c++]),h=l?r(p).concat(l(p)):r(p),v=h.length,m=0;v>m;)d.call(p,f=h[m++])&&(n[f]=p[f]);return n}:u},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(110),o=r(i),a=null;a=n(112).default,e.default=Object.assign({},o.default,a)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={redirectUrl:"https://traffic-staging.spot.im/v2",immediateScriptUrl:"https://recirculation-qa-direct.spot.im/spot-immediate/{{spotId}}"}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={redirectUrl:"https://traffic.spot.im/v2",immediateScriptUrl:"https://recirculation.spot.im/spot-immediate/{{spotId}}"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){try{if(null===d){if(d=c.default.getKey(window.location.href.toLowerCase(),l.toLowerCase()),d||(d=window[l]),!d)try{d=window.localStorage.getItem(l)}catch(t){}d||(d=""),d=d.split(",").map(function(t){return t.toLowerCase()})}return d}catch(t){return[]}}function o(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i-1||e.indexOf(t.toLowerCase())>-1?o.bind(null,t):function(){}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";console.warn("%cSP warning","background: red; font-weight :bold; color: white;",t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getDebugger=a,e.publicWarning=s;var u=n(95),c=r(u),l="SPOTIM_DEBUG_RECIRCULATION",d=null},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={cloudinary:{apiKey:"468332229667797"},demoPageServiceUrl:"/spot/{{spotId}}",ampDemoPageServiceUrl:"/spot/json/{{spotId}}",api:{extract:{url:"https://extract.spot.im",cdn:"https://api.spot.im/extract"},recirculation:{url:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation",cdn:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation"},topics:{url:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}",cdn:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}"},adsConfig:{clientUrl:"https://premaster-spotops.spot.im/spot/{{spotId}}/recirculation?platform={{platform}}",serverUrl:"https://premaster-spotops.spot.im/spot/{{spotId}}/recirculation-all"}},nextPageUrl:"https://recirculation.spot.im/page/{{spotId}}",prerenderScriptUrl:"https://recirculation.spot.im/script/{{spotId}}"}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={cloudinary:{apiKey:"468332229667797"},demoPageServiceUrl:"/spot/{{spotId}}",ampDemoPageServiceUrl:"/spot/json/{{spotId}}",api:{extract:{url:"https://extract.spot.im",cdn:"https://api.spot.im/extract"},recirculation:{url:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation",cdn:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation"},topics:{url:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}",cdn:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}"},adsConfig:{clientUrl:"https://spotops.spot.im/spot/{{spotId}}/recirculation?platform={{platform}}",serverUrl:"https://spotops.spot.im/spot/{{spotId}}/recirculation-all"}},nextPageUrl:"https://recirculation-qa-direct.spot.im/page/{{spotId}}",prerenderScriptUrl:"https://recirculation-qa-direct.spot.im/script/{{spotId}}"}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{ value:!0}),e.default={cloudinary:{apiKey:"468332229667797"},demoPageServiceUrl:"/spot/{{spotId}}",ampDemoPageServiceUrl:"/spot/json/{{spotId}}",api:{extract:{url:"https://extract.spot.im",cdn:"https://api.spot.im/extract"},recirculation:{url:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation",cdn:"https://www.spot.im/api/newsfeed-sync/spot/{{spotId}}/circulation"},topics:{url:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}",cdn:"https://www.spot.im/api/topics/circulation/spot/{{spotId}}"},adsConfig:{clientUrl:"https://spotops.spot.im/spot/{{spotId}}/recirculation?platform={{platform}}",serverUrl:"https://spotops.spot.im/spot/{{spotId}}/recirculation-all"}},nextPageUrl:"https://recirculation.spot.im/page/{{spotId}}",prerenderScriptUrl:"https://recirculation.spot.im/script/{{spotId}}"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){t=b.default.removeSpotImParams(t).toLowerCase(),e=b.default.removeSpotImParams(e).toLowerCase();var n=/(https?):\/\/(?:www\.)?(.[^\/]+)(.*)/,r=t.match(n),i=e.match(n);if(r&&i){var o=(0,y.default)(r,4),a=o[3],s=(0,y.default)(i,4),u=s[3];return a=a.split("/").join(""),u=u.split("/").join(""),a===u}return!1}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locationHref,r=void 0===n?window.location.href:n,o=e.compareFunc,a=void 0===o?null:o;a||(a=i);var s=[].concat((0,m.default)(t.querySelectorAll("[data-spmark=item-link]")));return s.forEach(function(t,e){var n=t.href,i=a(n,r);if(i){var o=t.parentNode;o.parentNode.removeChild(o)}}),t}function a(t){return[].concat((0,m.default)(t.querySelectorAll("[data-spotim-item]"))).forEach(function(t,e){t.dataset.spmark=t.dataset.spmark.replace(/index\:(\d+)/,"index:"+e),t.dataset.spotimIndex=e}),t}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return 0===e.length||e.reduce(function(e,n){if(e)return!0;var r=null;try{r=new RegExp(n)}catch(t){return!1}return!!t.match(r)},!1)}function u(t,e){return Array.apply(0,new Array(e)).map(function(e,n){return n+t})}function c(t,e,n){var r=Math.floor(e.length/t);return e.slice((n-1)*r,n*r)}function l(t){var e=/row(\d+)-cell(\d+)/,n=e.exec(t);return n?{row:parseInt(n[1]),column:parseInt(n[2]),name:t}:isNaN(parseInt(t))?{row:null,column:null,name:t}:{row:1,column:parseInt(t),name:t}}function d(t){var e={};return function(){var n=JSON.stringify(arguments);if(e[n])return e[n];var r=t.apply(this,arguments);return e[n]=r,r}}function f(t){var e=document.createElement("div");e.innerHTML=t;var n=e.firstElementChild;return e.removeChild(n),n}function p(t,e){if(void 0===e&&(e=t,t=0),"number"!=typeof t||"number"!=typeof e)throw new TypeError("Expected all arguments to be numbers");return Math.floor(Math.random()*(e-t+1)+t)}function h(){return{day:w(),hour:(new Date).getHours()}}Object.defineProperty(e,"__esModule",{value:!0}),e.ACTIVATE_MONETIZATION_EVENT=e.createFrame=e.createPlayer=e.getRealBackgroundColor=e.getSlotId=void 0;var v=n(90),m=r(v),g=n(83),y=r(g);e.urlsAreSimilar=i,e.removeItemByUrl=o,e.resequenceIndexes=a,e.whitelistUrl=s,e.range=u,e.getDeckItems=c,e.getSlot=l,e.memoize=d,e.createDomElement=f,e.randomInt=p,e.getAdvancedTargetingParams=h;var _=n(95),b=r(_),w=function(){var t=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],e=(new Date).getDay();return t[e]};e.getSlotId=function(t,e){return"row"+t+"-cell"+e},e.getRealBackgroundColor=function t(e){if(!e)return"#fff";var n="rgba(0, 0, 0, 0)",r=getComputedStyle(e).backgroundColor;return r===n?t(e.parentElement):r},e.createPlayer=function(t,e,n,r,i,o){return{id:p(1e3,1e5).toString(),code:t,name:e,size:{width:n,height:r},type:i,server:o}},e.createFrame=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=document.createElement("iframe");Object.assign(n.style,{width:"100%",height:"100%",border:"none"});var r=""+t+"";return e&&e.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.write(r),n.contentWindow.document.close(),n},e.ACTIVATE_MONETIZATION_EVENT="spot-im-activate-recirculation"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){return"object"===("undefined"==typeof window?"undefined":(0,a.default)(window))&&!!window.navigator.userAgent.toLocaleLowerCase().match(/(mobile|iemobile|android|webos|iphone|ipad|ipod|blackberry|windows phone)/)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(119),a=r(o);e.default=i()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(120),o=r(i),a=n(123),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===u(o.default)?function(t){return"undefined"==typeof t?"undefined":u(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":"undefined"==typeof t?"undefined":u(t)}},function(t,e,n){t.exports={default:n(121),__esModule:!0}},function(t,e,n){n(15),n(59),t.exports=n(122).f("iterator")},function(t,e,n){e.f=n(56)},function(t,e,n){t.exports={default:n(124),__esModule:!0}},function(t,e,n){n(125),n(14),n(133),n(134),t.exports=n(23).Symbol},function(t,e,n){"use strict";var r=n(22),i=n(36),o=n(31),a=n(21),s=n(37),u=n(126).KEY,c=n(32),l=n(51),d=n(55),f=n(52),p=n(56),h=n(122),v=n(127),m=n(128),g=n(129),y=n(28),_=n(29),b=n(44),w=n(34),E=n(35),A=n(40),S=n(130),O=n(132),T=n(27),k=n(42),I=O.f,x=T.f,P=S.f,C=r.Symbol,R=r.JSON,M=R&&R.stringify,L="prototype",D=p("_hidden"),j=p("toPrimitive"),N={}.propertyIsEnumerable,F=l("symbol-registry"),U=l("symbols"),q=l("op-symbols"),V=Object[L],H="function"==typeof C,B=r.QObject,z=!B||!B[L]||!B[L].findChild,$=o&&c(function(){return 7!=A(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=I(V,e);r&&delete V[e],x(t,e,n),r&&t!==V&&x(V,e,r)}:x,G=function(t){var e=U[t]=A(C[L]);return e._k=t,e},K=H&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},W=function(t,e,n){return t===V&&W(q,e,n),y(t),e=w(e,!0),y(n),i(U,e)?(n.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),n=A(n,{enumerable:E(0,!1)})):(i(t,D)||x(t,D,E(1,{})),t[D][e]=!0),$(t,e,n)):x(t,e,n)},X=function(t,e){y(t);for(var n,r=m(e=b(e)),i=0,o=r.length;o>i;)W(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?A(t):X(A(t),e)},Y=function(t){var e=N.call(this,t=w(t,!0));return!(this===V&&i(U,t)&&!i(q,t))&&(!(e||!i(this,t)||!i(U,t)||i(this,D)&&this[D][t])||e)},Q=function(t,e){if(t=b(t),e=w(e,!0),t!==V||!i(U,e)||i(q,e)){var n=I(t,e);return!n||!i(U,e)||i(t,D)&&t[D][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=P(b(t)),r=[],o=0;n.length>o;)i(U,e=n[o++])||e==D||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===V,r=P(n?q:b(t)),o=[],a=0;r.length>a;)!i(U,e=r[a++])||n&&!i(V,e)||o.push(U[e]);return o};H||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call(q,n),i(this,D)&&i(this[D],t)&&(this[D][t]=!1),$(this,t,E(1,n))};return o&&z&&$(V,t,{configurable:!0,set:e}),G(t)},s(C[L],"toString",function(){return this._k}),O.f=Q,T.f=W,n(131).f=S.f=Z,n(108).f=Y,n(107).f=tt,o&&!n(20)&&s(V,"propertyIsEnumerable",Y,!0),h.f=function(t){return G(p(t))}),a(a.G+a.W+a.F*!H,{Symbol:C});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=k(p.store),it=0;rt.length>it;)v(rt[it++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=C(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!H,"Object",{create:J,defineProperty:W,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),R&&a(a.S+a.F*(!H||c(function(){var t=C();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(_(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,M.apply(R,r)}}),C[L][j]||n(26)(C[L],j,C[L].valueOf),d(C,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){var r=n(52)("meta"),i=n(29),o=n(36),a=n(27).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(32)(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},d=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},f=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},p=function(t){return c&&h.NEED&&u(t)&&!o(t,r)&&l(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:d,getWeak:f,onFreeze:p}},function(t,e,n){var r=n(22),i=n(23),o=n(20),a=n(122),s=n(27).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(42),i=n(107),o=n(108);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(46);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(44),i=n(131).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){var r=n(43),i=n(53).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(108),i=n(35),o=n(44),a=n(34),s=n(36),u=n(30),c=Object.getOwnPropertyDescriptor;e.f=n(31)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){n(127)("asyncIterator")},function(t,e,n){n(127)("observable")},function(t,e){(function(t){function n(e){return e&&t.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent)?new XDomainRequest:t.XMLHttpRequest?new XMLHttpRequest:void 0}function r(t,e,n){t[e]=t[e]||n}var i=["responseType","withCredentials","timeout","onprogress"];e.ajax=function(e,o){function a(t,e){return function(){l||(o(void 0===d.status?t:d.status,0===d.status?"Error":d.response||d.responseText||e,d),l=!0)}}var s=e.headers||{},u=e.body,c=e.method||(u?"POST":"GET"),l=!1,d=n(e.cors);d.open(c,e.url,!0);var f=d.onload=a(200);d.onreadystatechange=function(){4===d.readyState&&f()},d.onerror=a(null,"Error"),d.ontimeout=a(null,"Timeout"),d.onabort=a(null,"Abort"),u&&(r(s,"X-Requested-With","XMLHttpRequest"),t.FormData&&u instanceof t.FormData||r(s,"Content-Type","application/x-www-form-urlencoded"));for(var p,h=0,v=i.length;h0)return t[i];return null}function d(t,e,n){for(var r=t.map(function(t){return c(t,e,n)}),i=r.length-1;i>=0;i--)if(r[i]<0)return t[i];return null}function f(t,e,n){return p(t,e,0,n)}function p(t,e,n,r){var i=w(t,r);return i+n<0}function h(t,e,n){return v(t,e,0,n)}function v(t,e,n,r){var i=w(t,r),s=o(e),u=a(t);return u+i+n>s}function m(t,e,n){return 0}function g(t,e,n){var r=a(t),i=o(e);return i-r}function y(t){return U}function _(t,e){["transform","webkitTransform","mozTransform","msTransform"].forEach(function(n){t.style[n]="translateX("+e+"px)"}),U=e}function b(t,e,n){"ltr"===n?_(t,e):_(t,-e)}function w(t,e){var n=y(t);return"ltr"===e?n:-n}Object.defineProperty(e,"__esModule",{value:!0}),e.Interaction=void 0;var E=n(137),A=r(E),S=n(138),O=r(S);e.setScrollXFromStart=b;var T=n(142),k=n(118),I=r(k),x=n(143),P=n(97),C=n(144),R=n(145),M=n(150),L=r(M),D=n(152),j=(e.Interaction=function(){function t(e){var n=e.onNavigateForward,r=void 0===n?function(){}:n,i=e.onNavigateBack,o=void 0===i?function(){}:i,a=e.onReachEnd,s=void 0===a?function(){}:a,u=e.onOverflowForward,c=void 0===u?function(){}:u,l=e.onReachStart,d=void 0===l?function(){}:l,f=e.onOverflowBack,p=void 0===f?function(){}:f,h=e.fetchNextPage,v=void 0===h?null:h,m=e.onFetchStart,g=void 0===m?function(){}:m,y=e.onFetchComplete,_=void 0===y?function(){}:y;(0,A.default)(this,t),this.container=null,this.scrollable=null,this.items=[],this.direction="ltr",this.onNavigateForward=r,this.onNavigateBack=o,this.onReachEnd=s,this.onOverflowForward=c,this.onReachStart=d,this.onOverflowBack=p,this.fetchNextPage=v,this.ajaxInProgress=!1,this.onFetchStart=g,this.onFetchComplete=_}return(0,O.default)(t,[{key:"initialize",value:function(t){var e=this,n=t.startWithItemInView,r=void 0===n?0:n,a=t.container,c=t.direction,l=void 0===c?"ltr":c,d=t.scrollable,f=t.items,p=t.forwardButton,h=t.backButton,v="ltr"===l;this.direction=l,this.container=a,this.scrollable=d,this.items=f;try{if(I.default){(0,T.onTap)(p,this.moveForward.bind(this,"click")),(0,T.onTap)(h,this.moveBack.bind(this,"click"));var m=null;(0,T.onGesture)(this.scrollable,{onSwipeLeft:v?this.moveForward.bind(this,"swipe"):this.moveBack.bind(this,"swipe"),onSwipeRight:v?this.moveBack.bind(this,"swipe"):this.moveForward.bind(this,"swipe"),onDragStart:function(){(0,P.addClass)(e.scrollable,x.cssSelectors.dragging),m=y(e.scrollable)},onDragStop:function(){(0,P.removeClass)(e.scrollable,x.cssSelectors.dragging),m=null},onDragProgress:function(t){null!==m&&_(e.scrollable,m+t)}})}else p.addEventListener("click",this.moveForward.bind(this,"click")),h.addEventListener("click",this.moveBack.bind(this,"click"));this.scrollable.addEventListener("transitionend",this.checkOverflows.bind(this),!1),window.addEventListener("resize",i),window.addEventListener("orientationchange",i),setTimeout(function(){try{if(r>0&&e.items[r]){var t=e.items[r],n=s(t,e.container);if(n<.51){var i=u(t,e.scrollable,e.direction),a=o(t),c=o(e.container),l=Math.ceil(.51*a),d=i+l,f=d-c,p=f;p>i&&(p=i),b(e.scrollable,-p,e.direction)}}e.checkOverflows()}catch(t){(0,R.reportError)(t,{errorSource:"interaction"})}},1e3)}catch(t){(0,R.reportError)(t,{errorSource:"interaction"})}this.initEvents()}},{key:"initEvents",value:function(){var t=this;L.default.on(D.DO_PAGE_BACK,function(){t.moveBack("event")}),L.default.on(D.DO_PAGE_NEXT,function(){t.moveForward("event")})}},{key:"checkOverflows",value:function(){f(this.scrollable,this.container,this.direction)?this.onOverflowBack():this.onReachStart(),h(this.scrollable,this.container,this.direction)?this.onOverflowForward():this.onReachEnd()}},{key:"moveForward",value:function(t){var e=this;if(!this.ajaxInProgress){"click"!==t&&"swipe"!==t||L.default.trigger(D.PAGE_NEXT_CLICKED);try{if(!this.container)throw new Error("Container not initialized");var n=l(this.items,this.scrollable,this.direction);if(n){var r=-c(n,this.scrollable,this.direction),i=v(this.scrollable,this.container,r,this.direction);if(i){this.onOverflowForward(),p(this.scrollable,this.container,r,this.direction)?this.onOverflowBack():this.onReachStart();var o=-u(n,this.scrollable,this.direction);requestAnimationFrame(function(){b(e.scrollable,o,e.direction),L.default.trigger("set-scroll-x-from-start",{args:[o,e.direction]})})}else{var a=g(this.scrollable,this.container,this.direction);b(this.scrollable,a,this.direction),L.default.trigger("set-scroll-x-from-start",{args:[a,this.direction]}),this.attemptFetchNextPage(t),this.onReachEnd()}setTimeout(function(){e.onNavigateForward({trigger:t,toItem:n})},700)}else{var s=g(this.scrollable,this.container,this.direction);b(this.scrollable,s,this.direction),L.default.trigger("set-scroll-x-from-start",{args:[s,this.direction]}),this.attemptFetchNextPage(t)}}catch(t){(0,R.reportError)(t,{errorSource:"interaction"})}}}},{key:"moveBack",value:function(t){var e=this;"click"!==t&&"swipe"!==t||L.default.trigger(D.PAGE_BACK_CLICKED);try{if(!this.container)throw new Error("Container not initialized");var n=d(this.items,this.scrollable,this.direction);if(n){var r=-c(n,this.scrollable,this.direction),i=p(this.scrollable,this.container,r,this.direction);if(i){this.onOverflowBack(),v(this.scrollable,this.container,r,this.direction)?this.onOverflowForward():this.onReachEnd();var o=-u(n,this.scrollable,this.direction);requestAnimationFrame(function(){b(e.scrollable,o,e.direction),L.default.trigger("set-scroll-x-from-start",{args:[o,e.direction]})})}else{var a=m(this.scrollable,this.container,this.direction);b(this.scrollable,a,this.direction),L.default.trigger("set-scroll-x-from-start",{args:[a,this.direction]}),this.onReachStart()}setTimeout(function(){e.onNavigateBack({trigger:t,toItem:n})},700)}else{var s=m(this.scrollable,this.container,this.direction);b(this.scrollable,s,this.direction),L.default.trigger("set-scroll-x-from-start",{args:[s,this.direction]})}}catch(t){(0,R.reportError)(t,{errorSource:"interaction"})}}},{key:"attemptFetchNextPage",value:function(t){var e=this;L.default.trigger("attempt-fetch-next-page"),this.fetchNextPage&&(this.ajaxInProgress=!0,this.onFetchStart(),this.fetchNextPage(this.scrollable,function(n){var r=n.newItems;[].push.apply(e.items,r),i(),e.ajaxInProgress=!1,e.onFetchComplete(),r.length>0&&e.moveForward(t)}))}}]),t}(),[]),N=[],F=[],U=0},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(139),o=r(i);e.default=function(){function t(t,e){for(var n=0;ni&&so&&(k=!0,h())}}}function s(){var t=(Math.abs(b-E),Math.abs(_-w),w<_),e=w>_,n=r(_,w,b,E),i=n>=-45&&n<=45||n>=135&&n<=180||n>=-180&&n<=-135;i&&(t&&l(),e&&f())}var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.onSwipeLeft,l=void 0===c?function(){}:c,d=u.onSwipeRight,f=void 0===d?function(){}:d,p=u.onDragStart,h=void 0===p?function(){}:p,v=u.onDragStop,m=void 0===v?function(){}:v,g=u.onDragProgress,y=void 0===g?function(){}:g,_=0,b=0,w=0,E=0,A=0,S=0,O=!1,T=!0,k=!1;t.addEventListener("touchstart",function(t){_=t.touches[0].screenX,b=t.touches[0].screenY,e()},!1),t.addEventListener("touchend",function(t){w=t.changedTouches[0].screenX,E=t.changedTouches[0].screenY,n()},!1),t.addEventListener("touchmove",function(t){return A=t.changedTouches[0].screenX,S=t.changedTouches[0].screenY,a(t)})}function r(t,e){function n(){var t=Math.abs(i-a),n=Math.abs(r-o),s=Math.sqrt(Math.pow(n,2)+Math.pow(t,2));s<=5&&e()}var r=0,i=0,o=0,a=0;t.addEventListener("touchstart",function(t){r=t.touches[0].screenX,i=t.touches[0].screenY},!1),t.addEventListener("touchend",function(t){o=t.changedTouches[0].screenX,a=t.changedTouches[0].screenY,n()},!1)}Object.defineProperty(e,"__esModule",{value:!0}),e.onGesture=n,e.onTap=r;var i=10,o=10},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(e.spotId="sp_jpost",e.spotGroup="JPOST",e.css="",e.content="\n\t\t\n\t\t
Popular In the Community
Sponsored
Sponsored
Sponsored
\n\t\t\n\t\t",e.cssSelectors={"recirculation":"sprc1YjLM","active":"sprc1pfAD","adChoice":"sprcZYoEa","content":"sprc2PlxR","items-window":"sprcRftoX","scrollable":"sprc1eDLH","items":"sprc26lX3","has-back-items":"sprc8_NwJ","has-forward-items":"sprc2vg5s","dragging":"sprcPesrx","loader":"sprc-T0Wq","a":"sprc2rEMe","ad-choice":"sprcZYoEa","sponsored-label":"sprcbSkmQ","sponsored-label-content":"sprcmlmgM","header":"sprc1GjYe","title":"sprc2wE2_","navigation":"sprc3VPpS","navigate":"sprc2hlM8","navigate-back":"sprcJjYeB","navigate-forward":"sprc2MkMP","fetch-loader":"sprc2A0Jn","fetching":"sprc3xVa6","reached-end":"sprc1gJKQ","avatar-blue":"sprcFco6q","avatar-orange":"sprc3pB4W","avatar-purple":"sprc2ko5l","avatar-green":"sprc1_682","avatar-red":"sprc1mcRl","avatar-grey":"sprc82og8","avatar-cyan":"sprc3tjZF","avatar-gold":"sprc3xOeN","avatar-olive":"sprcnQGvt","avatar-fabulous":"sprc3ioJl","avatar-hot":"sprcP_TJG","avatar-fierce":"sprc13toH","avatar-cosmic":"sprc34RnE","avatar-zen":"sprc1nBKX","avatar-strong":"sprcdbEGT","avatar-super":"sprc272Tr","avatar-magic":"sprc1Hh5N","avatar-peaceful":"sprc2CWoE","avatar-daring":"sprcU3Qow","avatar-heroic":"sprc2tD0r","avatar-wise":"sprc2WM0y","avatar-fresh":"sprc1UMcc","avatar-powerful":"sprcBh74L","avatar-slick":"sprc7luQk","avatar-autoblog":"sprc3lBDj","article-content":"sprc3ep3z","item-image":"sprc3JGD_","item":"sprc5DECK","item-title":"sprcrXXxN","item-content":"sprcW0DhN","user-image":"sprc37Avc","user-image-container":"sprc1IQpV","social-details":"sprcdi9x9","username":"sprc2qQzr","message-time":"sprcpvB1z","message-text":"sprc16C2K","item-title-text":"sprcLz-T4","image-background":"sprc1D3TP","social-content":"sprc1LKYH","social-header":"sprc2xJTJ","itemsWindow":"sprcRftoX","hasBackItems":"sprc8_NwJ","hasForwardItems":"sprc2vg5s","sponsoredLabel":"sprcbSkmQ","sponsoredLabelContent":"sprcmlmgM","navigateBack":"sprcJjYeB","navigateForward":"sprc2MkMP","fetchLoader":"sprc2A0Jn","reachedEnd":"sprc1gJKQ","avatarBlue":"sprcFco6q","avatarOrange":"sprc3pB4W","avatarPurple":"sprc2ko5l","avatarGreen":"sprc1_682","avatarRed":"sprc1mcRl","avatarGrey":"sprc82og8","avatarCyan":"sprc3tjZF","avatarGold":"sprc3xOeN","avatarOlive":"sprcnQGvt","avatarFabulous":"sprc3ioJl","avatarHot":"sprcP_TJG","avatarFierce":"sprc13toH","avatarCosmic":"sprc34RnE","avatarZen":"sprc1nBKX","avatarStrong":"sprcdbEGT","avatarSuper":"sprc272Tr","avatarMagic":"sprc1Hh5N","avatarPeaceful":"sprc2CWoE","avatarDaring":"sprcU3Qow","avatarHeroic":"sprc2tD0r","avatarWise":"sprc2WM0y","avatarFresh":"sprc1UMcc","avatarPowerful":"sprcBh74L","avatarSlick":"sprc7luQk","avatarAutoblog":"sprc3lBDj","articleContent":"sprc3ep3z","itemImage":"sprc3JGD_","itemTitle":"sprcrXXxN","itemContent":"sprcW0DhN","userImage":"sprc37Avc","userImageContainer":"sprc1IQpV","socialDetails":"sprcdi9x9","messageTime":"sprcpvB1z","messageText":"sprc16C2K","itemTitleText":"sprcLz-T4","imageBackground":"sprc1D3TP","socialContent":"sprc1LKYH","socialHeader":"sprc2xJTJ"},e.config={"must":null,"should":null,"nextPageUrl":"https://recirculation.spot.im/page/sp_jpost","cursor":{"pinned":{"offset":0,"count":20,"has_next":false},"typing":{"offset":1,"count":20,"has_next":false},"live":{"offset":20,"count":20,"has_next":true},"static":{"offset":0,"count":20,"has_next":true},"has_next":true},"brandColor":"#CA0000","languageDirection":"ltr","whitelist":[],"ads":{"Desktop":{"success":true,"advanced_targeting":true,"campaigns":[],"tags":{}},"Android-Tablet":{"success":true,"advanced_targeting":true,"campaigns":[],"tags":{}},"Android-Phone":{"success":true,"advanced_targeting":true,"campaigns":[],"tags":{}},"iOS-Tablet":{"success":true,"advanced_targeting":true,"campaigns":[],"tags":{}},"iOS-Phone":{"success":true,"advanced_targeting":true,"campaigns":[],"tags":{}},"spot":{"pub_spot_id":"sp_jpost","features":{"conversation":{"enabled":true},"recirculation":{"enabled":true,"decks":1,"ads_enabled":[1],"passback":true,"video_enabled":true,"display_over_video_enabled":true,"display_over_video_type":"display","display_over_video_code":"\n\n\n\n\n
\n\n
","moat_enabled":true,"moat_percent":10}}}},"enableSpotimUtm":true,"openLinksInNewTab":false,"referTraffic":true});window.location.href.indexOf("spotim_direction=rtl")>-1&&(r.languageDirection="rtl")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){return new l({right:window.innerWidth,bottom:window.innerHeight})}function o(t){var e=t.getBoundingClientRect();return new l(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Rect=void 0;var a=n(137),s=r(a),u=n(138),c=r(u);e.getWindowRect=i,e.getElementRect=o;var l=e.Rect=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.top,r=void 0===n?0:n,i=e.left,o=void 0===i?0:i,a=e.right,u=void 0===a?0:a,c=e.bottom,l=void 0===c?0:c;(0,s.default)(this,t),this.top=r,this.left=o,this.right=u,this.bottom=l}return(0,c.default)(t,[{key:"getHeight",value:function(){return Math.max(this.bottom-this.top,0)}},{key:"getWidth",value:function(){return Math.max(this.right-this.left,0)}},{key:"isEmpty",value:function(){return this.top===this.bottom||this.left===this.right}},{key:"isNegative",value:function(){return this.top>this.bottom||this.left>this.right}},{key:"getArea",value:function(){return this.getHeight()*this.getWidth()}},{key:"intersect",value:function(e){var n=Math.max(this.top,e.top),r=Math.max(this.left,e.left),i=Math.min(this.right,e.right),o=Math.min(this.bottom,e.bottom);return new t({top:n,left:r,right:i,bottom:o})}},{key:"addFrameRect",value:function(e){return new t({top:e.top+this.top,left:e.left+this.left,right:e.left+this.right,bottom:e.top+this.bottom})}},{key:"toObject",value:function(){return{top:this.top,left:this.left,right:this.right,bottom:this.bottom}}}],[{key:"fromObject",value:function(e){return new t(e)}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.reportError=void 0;var i=n(102),o=r(i),a=n(146),s=n(113),u=n(149),c=(0,s.getDebugger)("errors"),l=2,d=window.navigator&&window.navigator.userAgent||null,f=(0,a.createReporter)("RecirculationClient",!0);e.reportError=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};if(t instanceof Error)n={error:t.message,stack:t.stack};else if("string"==typeof t)n={error:t};else try{n={error:JSON.stringify(t)}}catch(t){n={error:"ERROR_IN_ERROR_REPORT"+t.message,stack:t.stack}}n=(0,o.default)({},n,e,{v:l,ua:d,packageVersion:u.version}),c(n),f("FED-ERROR",n)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return Object.keys(t).reduce(function(e,n){return e["payload_"+n]=t[n],e},{})}function o(t){var e=new XMLHttpRequest;e.open("GET",t),e.send()}function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e||a){var s=(0,u.default)({source:"FED",moduleName:t,message:r},i(o)),c="https://track.spots.im/?m="+JSON.stringify(s);n(c)}}}Object.defineProperty(e,"__esModule",{value:!0});var s=n(147),u=r(s);e.createReporter=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(148),o=r(i);e.default=o.default||function(t){for(var e=1;e1?e-1:0),r=1;r0&&(i=this.events[t]),i.forEach(function(t){return t.apply(void 0,n)})}},{key:"off",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.events[t]&&this.events[t].length>0&&(e?i(this.events[t],e):this.events[t]=[])}}]),t}();e.default=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AD_DISPLAY_STARTED="ad-display-start",e.AD_DISPLAY_FINISHED="ad-display-finish",e.AD_CONTENT_DISPLAY_STARTED="ad-content-display-start",e.AD_CONTENT_DISPLAY_FINISHED="ad-content-display-finish",e.AD_VIEWABILITY_2SEC="ad-viewability-2sec",e.AD_VIEWABILITY_3SEC="ad-viewability-3sec",e.DO_PAGE_BACK="do-page-back",e.DO_PAGE_NEXT="do-page-next",e.PAGE_BACK_CLICKED="page-back-clicked",e.PAGE_NEXT_CLICKED="page-next-clicked",e.IN_VIEW_2S="in-view-2s",e.ENTERED_VIEWPORT="entered-viewport",e.LEFT_VIEWPORT="left-viewport"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{};return k.handleEvent(t,e)}function s(t){return x.handleEvent(t)}function u(){for(var t=arguments.length,e=Array(t),n=0;n1?o-1:0),s=1;s1?e-1:0),r=1;r1?e-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e={domain:t.location.hostname,url:t.location.href,referrer:t.document.referrer,lang:t.navigator.userLanguage||t.navigator.language};return e}function o(t){if(t.performance&&t.performance.timing){var e=t.performance.timing.domLoading;if(!isNaN(parseInt(e))&&e>0)return e}return null}function a(t){var e=function(t){return t.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()})};return Object.assign.apply(Object,[{}].concat((0,f.default)(Object.keys(t).map(function(n){return(0,l.default)({},e(n),t[n])}))))}function s(t){if(t<0)return null;var e=9007199254740991;if(t&&!isNaN(parseInt(t))){var n=Date.now()-t;return isNaN(n)?n=null:n<0?n=null:n>e&&(n=null),n}return null}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};return Object.keys(t).forEach(function(n){null!==t[n]&&"undefined"!=typeof t[n]&&(e[n]=t[n])}),e=encodeURIComponent(btoa(JSON.stringify(e)))}Object.defineProperty(e,"__esModule",{value:!0});var c=n(159),l=r(c),d=n(90),f=r(d);e.getBrowserWindowParams=i,e.getStartTime=o,e.objectKeysToSnakeCase=a,e.getTimeDelta=s,e.preparePayload=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(139),o=r(i);e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){"use strict";function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function r(){var t=n;return t()+t()+t()+t()+t()+t()+t()+t()}Object.defineProperty(e,"__esModule",{value:!0}),e.shortGuid=n,e.guid=r,e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){try{if(null===l){if(l=u.default.getKey(window.location.href.toLowerCase(),c.toLowerCase()),l||(l=window[c]),!l)try{l=window.localStorage.getItem(c)}catch(t){}l||(l=""),l=l.split(",").map(function(t){return t.toLowerCase()})}return l}catch(t){return[]}}function o(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i-1||e.indexOf(t.toLowerCase())>-1?o.bind(null,t):function(){}}Object.defineProperty(e,"__esModule",{value:!0}),e.getDebugger=a;var s=n(162),u=r(s),c="SPOTIM_DEBUG_TRACK",l=null},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return t.split("?")[0].split("#")[0]}function o(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Object.keys(t).reduce(function(e,n){return[].concat((0,h.default)(e),[n+"="+encodeURIComponent(t[n])])},[]).join("&");return e&&n.length>0&&(n="?"+n),n}function a(t){var e=t.indexOf("?");if(e===-1)return{};var n=t.substring(e).slice(1).split("&"),r={};return n.forEach(function(t){t=t.split("="),""!==t[0]&&(r[t[0]]=decodeURIComponent(t[1]||""))}),JSON.parse(JSON.stringify(r))}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=a(t),i=!1;return r.hasOwnProperty(e)&&(i=null===n||r[e]===n),i}function u(t,e){var n=t,r={};if(n){var i=n.indexOf("?");i>-1&&(r=a(n),n=n.substring(0,i))}else n="";var s=Object.assign(r,e),u=o(s);return u.length>0&&(n+=u),n}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.urlParams,r=e.queryString;return t=Object.keys(n).reduce(function(t,e){return t.indexOf(":"+e)>=-1&&(t=t.replace(":"+e,n[e])),t},t),u(t,r)}function l(t,e){return e.reduce(function(t,e){return d(t,e)},t)}function d(t,e){var n=t,r=t.indexOf("?");if(r!==-1){var i=t.substring(0,r),o=t.substring(r+1),a=new RegExp("&"+e+"(=[^&]*)?|^"+e+"(=[^&]*)?&?");o=o.replace(a,""),n=i+(o.length>0?"?":"")+o}return n}function f(t,e,n){var r=t,i=new RegExp("([?&])"+e+"=.*?(&|$)","i");if(t.match(i))r=t.replace(i,"$1"+e+"="+n+"$2");else{var o=t.indexOf("?")!==-1?"&":"?";r=t+o+e+"="+n}return r}Object.defineProperty(e,"__esModule",{value:!0}),e.objectFromQueryString=void 0;var p=n(90),h=r(p),v=n(163);Object.defineProperty(e,"objectFromQueryString",{enumerable:!0,get:function(){return v.objectFromQueryString}}),e.stripQueryStringAndHash=i,e.queryStringFromObject=o,e.buildUrl=u,e.composeUrl=c,e.removeParams=l;var m=n(164);e.default={parseUrl:a,buildUrl:u,getKey:m.getKey,setKey:f,removeParams:l,hasQueryString:s}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n={},r=t.indexOf("?");if(r>-1){var i=t.substring(r+1);""!==i&&i.split("&").forEach(function(t){var r=t.split("="),i=(0,a.default)(r,2),o=i[0],s=i[1];if(!e||e.indexOf(o)!==-1)try{n[o]=decodeURIComponent(s)}catch(t){}})}return n}Object.defineProperty(e,"__esModule",{value:!0});var o=n(83),a=r(o);e.objectFromQueryString=i},function(t,e){"use strict";function n(t,e){e=e.replace(/[\[\]]/g,"\\$&");var n,r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return n=i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}Object.defineProperty(e,"__esModule",{value:!0}),e.getKey=n},function(t,e,n){"use strict";function r(t){return this.performRequest(null,{spotId:t})}Object.defineProperty(e,"__esModule",{value:!0}),e.trackSpotLoad=void 0;var i=n(166),o=n(177);e.trackSpotLoad=(0,i.createDefaultResource)(o.apiUrl,"get","/spot/{{spotId}}",r,{withCredentials:!0})},function(t,e,n){"use strict";function r(t,e,n,r,a){return(0,i.createResource)(t,e,n,r,a,o.RequestHandler)}Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultResource=r;var i=n(167),o=n(169)},function(t,e,n){"use strict";function r(t,e,n,a){function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.replace(o,function(e,n){return t.hasOwnProperty(n)?encodeURIComponent(t[n]):e})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t+s(e)}function c(o){return o=(0,i.extendOptions)(f,o),r(t,e,n,a,o,p)}function l(){return{apiUrl:t,method:e,url:n,execute:a,options:f}}function d(t,n){var r=u(n);f=(0,i.extendOptions)(i.defaultOptions,f);var o;switch(e.toLowerCase()){case"get":o=p.get(r,t,f);break;case"delete":o=p.delete(r,f);break;case"patch":o=p.patch(r,t,f);break;case"post":o=p.post(r,t,f);break;case"put":o=p.put(r,t,f)}return o}var f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},p=arguments[5];return{getUrl:s,getFullUrl:u,performRequest:d,extend:c,execute:a,getProperties:l}}Object.defineProperty(e,"__esModule",{value:!0}),e.createResource=r;var i=n(168),o=/\{\{(\w+)\}\}/gi},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){e in t&&(n[e]=t[e])}function o(t,e,n){if(e in t)if(n[e]){var r=n[e];n[e]=function(){t[e](),r()}}else n[e]=t[e]}function a(t,e,n){e in t&&(Array.isArray(t[e])?n[e]=[].concat((0,c.default)(n[e]||[]),(0,c.default)(t[e])):n[e]=[].concat((0,c.default)(n[e]||[]),[t[e]]))}function s(){for(var t={},e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return n.withCredentials&&(e=e.withCredentials()),n.contentType&&(e=e.set("Content-Type",n.contentType),"application/x-www-form-urlencoded"!==n.contentType&&"text/plain"!==n.contentType||(e._data=JSON.stringify(e._data))),new Promise(function(r,i){t.invokeRequestInterceptors(e,n.requestInterceptors,n).then(function(e){var o=e.request;o.end(function(e,a){e?(i(e),n.error&&n.error(e)):t.invokeResponseInterceptors(o,a,n.responseInterceptors,n).then(function(e){var o=e.response;if(o.ok){var a=t.invokeParsers(o.body,n.parsers);r(a),n.success&&n.success(a)}else i(o),n.error&&n.error(o)})})})})}},{key:"invokeParsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(e)||(e=[e]);var n=Object.freeze(t);return e.reduce(function(t,e){return e(n,t)},n)}},{key:"invokeRequestInterceptors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(t,e){return t.then(function(t){var r=t.request;return e.requestInterceptor(r,n)})},Promise.resolve({request:t}))}},{key:"invokeResponseInterceptors",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n.reduce(function(e,n){return e.then(function(e){var i=e.response;return n.responseInterceptor(t,i,r)})},Promise.resolve({response:e}))}},{key:"get",value:function(e,n,r){var i=c.default.get(e,n);return t.performRequest(i,r)}},{key:"post",value:function(e,n,r){var i=c.default.post(e,n);return t.performRequest(i,r)}},{key:"patch",value:function(e,n,r){var i=c.default.patch(e,n);return t.performRequest(i,r)}},{key:"put",value:function(e,n,r){var i=c.default.put(e,n);return t.performRequest(i,r)}},{key:"delete",value:function(e,n){var r=c.default.del(e);return t.performRequest(r,n)}}]),t}()},function(t,e,n){function r(){}function i(t){if(!v(t))return t;var e=[];for(var n in t)o(e,n,t[n]);return e.join("&")}function o(t,e,n){if(null!=n)if(Array.isArray(n))n.forEach(function(n){o(t,e,n)});else if(v(n))for(var r in n)o(t,e+"["+r+"]",n[r]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(n));else null===n&&t.push(encodeURIComponent(e))}function a(t){for(var e,n,r={},i=t.split("&"),o=0,a=i.length;o=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.onprogress=r.bind(null,"download"),e.upload&&(e.upload.onprogress=r.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||y.serialize[i?i.split(";")[0]:""];!o&&u(i)&&(o=y.serialize["application/json"]),o&&(n=o(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&e.setRequestHeader(a,this.header[a]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send("undefined"!=typeof n?n:null),this},y.agent=function(){return new g},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){g.prototype[t.toLowerCase()]=function(e,n){var r=new y.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}}),g.prototype.del=g.prototype.delete,y.get=function(t,e,n){var r=y("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},y.head=function(t,e,n){var r=y("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},y.options=function(t,e,n){var r=y("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},y.del=d,y.delete=d,y.patch=function(t,e,n){var r=y("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},y.post=function(t,e,n){var r=y("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},y.put=function(t,e,n){var r=y("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},function(t,e,n){function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(n===!0)return!0;if(n===!1)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~a.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},r.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},r.prototype.then=function(t,e){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){n.end(function(n,r){n?e(n):t(r)})})}return this._fullfilledPromise.then(t,e)},r.prototype.catch=function(t){return this.then(void 0,t)},r.prototype.use=function(t){return t(this),this},r.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},r.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},r.prototype.get=function(t){return this._header[t.toLowerCase()]},r.prototype.getHeader=r.prototype.get,r.prototype.set=function(t,e){if(o(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},r.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},r.prototype.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(t)){for(var n in t)this.field(n,t[n]);return this}if(Array.isArray(e)){for(var r in e)this.field(t,e[r]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},r.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},r.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},r.prototype.withCredentials=function(t){return void 0==t&&(t=!0),this._withCredentials=t,this},r.prototype.redirects=function(t){return this._maxRedirects=t,this},r.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(t){var e=o(t),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&o(this._data))for(var r in t)this._data[r]=t[r];else"string"==typeof t?(n||this.type("form"),n=this._header["content-type"],"application/x-www-form-urlencoded"==n?this._data=this._data?this._data+"&"+t:t:this._data=(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(n||this.type("json"),this)},r.prototype.sortQuery=function(t){return this._sort="undefined"==typeof t||t,this},r.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var n=this.url.substring(e+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,e)+"?"+n.join("&")}}},r.prototype._appendQueryString=function(){console.trace("Unsupported")},r.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error(t+e+"ms exceeded");r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},r.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(t,e){"use strict";function n(t){return null!==t&&"object"==typeof t}t.exports=n},function(t,e,n){"use strict";function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}var o=n(175);t.exports=r,r.prototype.get=function(t){return this.header[t.toLowerCase()]},r.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var n=o.params(e);for(var r in n)this[r]=n[r];this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},r.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.created=201==t,this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t,this.unprocessableEntity=422==t}},function(t,e){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce(function(t,e){var n=e.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(t[r]=i),t},{})},e.parseLinks=function(t){return t.split(/ *, */).reduce(function(t,e){var n=e.split(/ *; */),r=n[0].slice(1,-1),i=n[1].split(/ *= */)[1].slice(1,-1);return t[i]=r,t},{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(t){n.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}}),n.prototype._setDefaults=function(t){this._defaults.forEach(function(e){t[e.fn].apply(t,e.arguments)})},t.exports=n},function(t,e,n){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r;r=n(178);e.apiUrl=t.env.SKIP_CDN?r.url:r.cdn}).call(e,n(5))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.url="https://tracker.spot.im",e.cdn="https://www.spot.im/api/tracker"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.browserId=e.visitId=e.VERSION=void 0;var r=n(160);window.$$SPOTIM_VID$$=window.$$SPOTIM_VID$$||(0,r.guid)(),window.$$SPOTIM_BID$$=window.$$SPOTIM_BID$$||(0,r.guid)();e.VERSION=6,e.visitId=$$SPOTIM_VID$$,e.browserId=window.$$SPOTIM_BID$$; },function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=u(t),n={};return e.forEach(function(t){var e=t.match(m);e?n[e[1]]=e[2]:n[t]=!0}),Object.keys(n).length>0?n:null}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)throw"Can't get marks path without rootNode";for(var n=[],r=e.parentNode?e.parentNode:e;t&&t!==r;){if(t.getAttribute){var o=i(t);o&&n.push(o)}t=t.parentNode}return n}function a(t,e){return!!t.find(function(t){return t[e]})}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.having,r=e.key,i=null,o=t.find(function(t){return t[n]});return o&&(i=o[r]),i}function u(t){return(t.getAttribute(v)||"").split(" ").map(function(t){return t.trim()}).filter(function(t,e,n){return n.indexOf(t)===e}).filter(function(t){return""!==t})}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=u(t);n=n.filter(function(t){return t!==e}),n.push(e),t.setAttribute(v,n.join(" "))}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=u(t);n=n.filter(function(t){return t!==e}),t.setAttribute(v,n.join(" "))}function d(t,e){var n=u(t);return n.indexOf(e)>-1}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.container,r=void 0===n?null:n;r||(r=document);var i=r.querySelectorAll("["+v+'~="'+t+'"]');return[].concat((0,h.default)(i))}Object.defineProperty(e,"__esModule",{value:!0}),e.MARK_KEY=void 0;var p=n(90),h=r(p);e.getElementMarks=i,e.getMarksPathFromTarget=o,e.pathHasMark=a,e.getMarkValueFromPath=s,e.setElementMark=c,e.removeElementMark=l,e.elementHasMark=d,e.findMarkedElements=f;var v=e.MARK_KEY="data-spmark",m=/([^\s]+):([^\s]*)/},function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,s.preparePayload)(t);return new Promise(function(t,n){function r(){try{document.body.removeChild(o)}catch(t){}}function i(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;n({data:e})}var o=document.createElement("img");try{Object.assign(o.style,{width:0,height:0,opacity:0,position:"absolute"});var a=""+c+e+"&rnd="+Math.random();o.onload=function(){t(),r()},o.onerror=function(e){(0,u.reportToBugsnag)(a),t(),r()},o.src=a,document.body.appendChild(o)}catch(t){i(t),r()}})}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.preparePayload)(t);"function"==typeof window.navigator.sendBeacon}Object.defineProperty(e,"__esModule",{value:!0}),e.send=r,e.beacon=i;var o,a=n(182),s=n(158),u=n(183);o=n(216).production;var c=((0,a.createReporter)("Recirculation",!0),o.logstashAnalyticsUrlPrefix);o.logstashAnalyticsBeaconUrl},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return Object.keys(t).reduce(function(e,n){return e["payload_"+n]=t[n],e},{})}function o(t){var e=new XMLHttpRequest;e.open("GET",t),e.send()}function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e||a){var s=(0,u.default)({source:"FED",moduleName:t,message:r},i(o)),c="https://pix.spot.im/api/v1/pixel?m="+JSON.stringify(s);n(c)}}}Object.defineProperty(e,"__esModule",{value:!0});var s=n(102),u=r(s);e.createReporter=a},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){var t=void 0;return window.performance&&window.performance.timing&&(t=parseInt(window.performance.timing.domLoading),(isNaN(t)||t<0)&&(t=void 0)),t}function o(t){if(!(!t||isNaN(t)||t<0)){var e=9007199254740991,n=Date.now()-t;return(isNaN(n)||n<0||n>e)&&(n=void 0),n}}function a(){var t=window.location.hostname,e=window.location.href,n=window.document.referrer,r=window.navigator.userLanguage||window.navigator.language,a=o(i()),s=(0,m.guid)(),u=window.$$SPOTIM_VID$$=window.$$SPOTIM_VID$$||(0,m.guid)(),c=void 0,l=void 0;if(window.localStorage){var d=E.default.get(w.CURRENT_USER_STORAGE_KEY);if(l=d&&d.id,l||(l=void 0),c=window.localStorage.$$SPOTIM_BID$$,!c){c=(0,m.guid)();try{window.localStorage.$$SPOTIM_BID$$=c}catch(t){}}}else c=window.$$SPOTIM_BID$$||(0,m.guid)();return window.$$SPOTIM_BID$$=c,{domain:t,href:e,referrer:n,language:r,timeFromDomLoading:a,eventId:s,visitId:u,browserId:c,userId:l}}function s(t,e,n){n&&n()}function u(t){S.default.get(t).catch(function(e){s(t,e.response)})}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};Object.keys(t).forEach(function(n){null!==t[n]&&"undefined"!=typeof t[n]&&(e[n]=t[n])});var n=encodeURIComponent(btoa(JSON.stringify(e)));return""+b.default.analyticsUrl+n+"&rnd="+Math.random()}function l(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=a(),o=i.domain,s=i.href,u=i.referrer,c=i.language,l=i.timeFromDomLoading,d=i.eventId,f=i.visitId,p=i.browserId,h=i.userId,m=(0,v.default)({uid:d,time_delta:l,visit_id:f,ib_browser_id:p,source:t,source_version:e,type:n,domain:o,url:s,referrer:u,lang:c,user_id:h},r);return m}function d(e,n){function r(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=l(e,n,t,(0,v.default)({},m,r)),o=null;i.navigateAfterSending&&(o=i.navigateAfterSending,delete i.navigateAfterSending),O("Track",i);var a=c(i);u(a)}function i(t){m.spot_id=t}function o(t){m.current_user_id=t}function a(t){m.post_id=t}function s(t){m.is_registered=t||null}function d(t){m.conversation_id=t}function f(t){m=(0,v.default)({},m,t)}function h(){return m}var m={};t.env.PRERENDER||document.addEventListener(y.CURRENT_USER_CHANGE,function(t){var e=t.detail.currentUserId;o(e)});var g=function(t,e){return"object"===("undefined"==typeof t?"undefined":(0,p.default)(t))&&(e=t,t=e.event,delete e.event),{eventType:t,params:e}},_=function(t,e){var n=g(t,e);r(n.eventType,n.params)};return{track:_,setSpotId:i,setCurrentUserId:o,setCurrentUserIsRegistered:s,setCommonParams:f,setPostId:a,setConversationId:d,backwardsCompat:g,getCommonParams:h}}Object.defineProperty(e,"__esModule",{value:!0});var f=n(119),p=r(f),h=n(102),v=r(h);e.reportToBugsnag=s,e.createTracker=d;var m=n(160),g=n(184),y=n(185),_=n(186),b=r(_),w=n(188),E=r(w),A=n(190),S=r(A),O=(0,g.getDebugger)("Analytics")}).call(e,n(5))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){try{if(null===l){if(l=u.default.getKey(window.location.href.toLowerCase(),c.toLowerCase()),l||(l=window[c]),!l)try{l=window.localStorage.getItem(c)}catch(t){}l||(l=""),l=l.split(",").map(function(t){return t.toLowerCase()})}return l}catch(t){return[]}}function o(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i-1||e.indexOf(t.toLowerCase())>-1?o.bind(null,t):function(){}}Object.defineProperty(e,"__esModule",{value:!0}),e.getDebugger=a;var s=n(162),u=r(s),c="SPOTIM_DEBUG_API",l=null},function(t,e,n){(function(t){"use strict";function n(t,e){switch(t){case i:var n=e,r=n.currentUser;r=void 0===r?{}:r;var o=r.username,a=r.email,s=r.socialNetworks;e={currentUser:{username:o,email:a,socialNetworks:s}}}return e}function r(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r=n(e,r),!t.env.PRERENDER){var i=new CustomEvent(e,{detail:r});document.dispatchEvent(i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.notifyHostEvent=r;var i=(e.USER_UP_VOTE_CLICK="spot-im-user-up-vote-click",e.USER_DOWN_VOTE_CLICK="spot-im-user-down-vote-click",e.USER_NOTIFICATIONS_CLICK="spot-im-user-notifications-click",e.CURRENT_USER_TYPING_START="spot-im-current-user-typing-start",e.CURRENT_USER_TYPING_END="spot-im-current-user-typing-end",e.CURRENT_USER_SENT_MESSAGE="spot-im-current-user-sent-message",e.POST_LOGIN="spot-im-post-login");e.CURRENT_USER_CHANGE="spot-im-current-user-change",e.LOGIN_START="spot-im-login-start",e.FRAME_ENTITY_LOAD="spot-im-frame-entity-load",e.FRAME_RESIZE="spot-im-frame-resize",e.MODALS_HEIGHT="spot-im-modals-height",e.USER_CLICK="spot-im-user-click",e.API_READY="spot-im-api-ready",e.OPEN_USER_PROFILE="spot-im-open-user-profile",e.CONVERSATION_LOAD="spot-im-conversation-loaded",e.CONVERSATION_CHANGE="spot-im-conversation-changed",e.FOLLOW_TOGGLE="spot-im-follow-toggle",e.RELOAD_WINDOW="spot-im-reload-window",e.NAVIGATE_TO_URL="spot-im-navigate-to-url",e.HOST_API_REALTIME_NEW_MESSAGE="spot-im-realtime-new-message"}).call(e,n(5))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=null;r=n(187).default,e.default=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={analyticsUrl:"https://pix.spot.im/api/v1/pixel?m="}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.removeKey=e.safeGetObject=e.SET_AUTO_FOLLOW=e.CURRENT_USER_STORAGE_KEY=void 0;var i=n(189),o=r(i),a="SPOTIM_";o.default.prefix=a;e.CURRENT_USER_STORAGE_KEY="CURRENT_USER",e.SET_AUTO_FOLLOW="SET_AUTO_FOLLOW",e.safeGetObject=function(){return o.default.get.apply(o.default,arguments)||{}},e.removeKey=function(t){return localStorage.removeItem(a+t)};e.default=o.default},function(t,e,n){!function(n,r){"undefined"!=typeof t&&t.exports&&(e=t.exports=r(n,e))}(this,function(t,e){"use strict";return Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e=this.length>>>0,n=Number(arguments[1])||0;for(n=n<0?Math.ceil(n):Math.floor(n),n<0&&(n+=e);n-1)return null;try{a.push(n),i=JSON.stringify({data:a}),localStorage.setItem(o,i)}catch(e){console.log(e),console&&console.warn("Lockr didn't successfully add the "+n+" to "+t+" set, because the localStorage is full.")}},e.smembers=function(t,e){var n,r=this._getPrefixedKey(t,e);try{n=JSON.parse(localStorage.getItem(r))}catch(t){n=null}return null===n?[]:n.data||[]},e.sismember=function(t,n,r){this._getPrefixedKey(t,r);return e.smembers(t).indexOf(n)>-1},e.getAll=function(){var t=Object.keys(localStorage);return t.map(function(t){return e.get(t)})},e.srem=function(t,n,r){var i,o,a=this._getPrefixedKey(t,r),s=e.smembers(t,n);o=s.indexOf(n),o>-1&&s.splice(o,1),i=JSON.stringify({data:s});try{localStorage.setItem(a,i)}catch(e){console&&console.warn("Lockr couldn't remove the "+n+" from the set "+t)}},e.rm=function(t){localStorage.removeItem(t)},e.flush=function(){localStorage.clear()},e})},function(t,e,n){t.exports=n(191)},function(t,e,n){"use strict";function r(t){var e=new a(t),n=o(a.prototype.request,e);return i.extend(n,a.prototype,e),i.extend(n,e),n}var i=n(192),o=n(193),a=n(195),s=n(196),u=r(s);u.Axios=a,u.create=function(t){return r(i.merge(s,t))},u.Cancel=n(213),u.CancelToken=n(214),u.isCancel=n(210),u.all=function(t){return Promise.all(t)},u.spread=n(215),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";function r(t){return"[object Array]"===S.call(t)}function i(t){return"[object ArrayBuffer]"===S.call(t)}function o(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function s(t){return"string"==typeof t}function u(t){return"number"==typeof t}function c(t){return"undefined"==typeof t}function l(t){return null!==t&&"object"==typeof t}function d(t){return"[object Date]"===S.call(t)}function f(t){return"[object File]"===S.call(t)}function p(t){return"[object Blob]"===S.call(t)}function h(t){return"[object Function]"===S.call(t)}function v(t){return l(t)&&h(t.pipe)}function m(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function g(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function _(t,e){if(null!==t&&"undefined"!=typeof t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,i=t.length;n=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){u.headers[t]={}}),o.forEach(["post","put","patch"],function(t){u.headers[t]=o.merge(s)}),t.exports=u}).call(e,n(5))},function(t,e,n){"use strict";var r=n(192);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(192),i=n(199),o=n(202),a=n(203),s=n(204),u=n(200),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(205);t.exports=function(t){return new Promise(function(e,l){var d=t.data,f=t.headers;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest,h="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||s(t.url)||(p=new window.XDomainRequest,h="onload",v=!0,p.onprogress=function(){},p.ontimeout=function(){}),t.auth){var m=t.auth.username||"",g=t.auth.password||"";f.Authorization="Basic "+c(m+":"+g)}if(p.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p[h]=function(){if(p&&(4===p.readyState||v)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?p.response:p.responseText,o={data:r,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:t,request:p};i(e,l,o),p=null}},p.onerror=function(){l(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){l(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=n(206),_=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;_&&(f[t.xsrfHeaderName]=_)}if("setRequestHeader"in p&&r.forEach(f,function(t,e){"undefined"==typeof d&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)}),t.withCredentials&&(p.withCredentials=!0),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){p&&(p.abort(),l(t),p=null)}),void 0===d&&(d=null),p.send(d)})}},function(t,e,n){"use strict";var r=n(200);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";var r=n(201);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(192);t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))}))}),o=a.join("&")}return o&&(t+=(t.indexOf("?")===-1?"?":"&")+o),t}},function(t,e,n){"use strict";var r=n(192),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;"set-cookie"===e?a[e]=(a[e]?a[e]:[]).concat([n]):a[e]=a[e]?a[e]+", "+n:n}}),a):a}},function(t,e,n){"use strict";var r=n(192);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(n){var i=r.isString(n)?t(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e){"use strict";function n(){this.message="String contains an invalid character"}function r(t){for(var e,r,o=String(t),a="",s=0,u=i;o.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&e>>8-s%1*8)){if(r=o.charCodeAt(s+=.75),r>255)throw new n;e=e<<8|r}return a}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=r},function(t,e,n){"use strict";var r=n(192);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e,n){"use strict";function r(){this.handlers=[]}var i=n(192);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){"use strict";function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var i=n(192),o=n(209),a=n(210),s=n(196),u=n(211),c=n(212);t.exports=function(t){r(t),t.baseURL&&!u(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=t.adapter||s.adapter;return e(t).then(function(e){return r(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(r(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(192);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new i(t),e(n.reason))})}var i=n(213);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r(function(e){t=e});return{token:e,cancel:t}},t.exports=r},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e){"use strict";t.exports={staging:{serviceUrl:"http://v2.staging-spot.im/api/track",logstashAnalyticsUrlPrefix:"https://pix.staging-spot.im/api/v1/pixel?m=",logstashAnalyticsBeaconUrl:"https://pix.staging-spot.im/api/v1/pixel"},production:{serviceUrl:"http://www.spot.im/api/track",logstashAnalyticsUrlPrefix:"https://pix.spot.im/api/v1/pixel?m=",logstashAnalyticsBeaconUrl:"https://pix.spot.im/api/v1/pixel"}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.UiCapture=void 0;var i=n(137),o=r(i),a=n(138),s=r(a),u=n(180);e.UiCapture=function(){function t(e){var n=e.root,r=void 0===n?null:n,i=(e.events,e.filters),a=void 0===i?[]:i,s=e.track,u=void 0===s?function(){}:s;(0,o.default)(this,t),this.root=r,this.filters=a,this.track=u}return(0,s.default)(t,[{key:"attachHandlers",value:function(t,e){var n=this;e=e.split(" "),e.forEach(function(e){return t.addEventListener(e,n.handleEvent.bind(n),!0)})}},{key:"handleEvent",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},i=!1;return this.filters.forEach(function(o){for(var a=[],s=t.target,c=e.root&&e.root.parentNode?e.root.parentNode:e.root;s&&s!==c;){if(s.getAttribute){var l=(0,u.getElementMarks)(s);l&&a.push(l)}s=s.parentNode}if(a.length>0&&o.query(t.type,a,n)){var d=o.transform(t.type,a,n);d&&Object.keys(d).length>0&&(Object.assign(r,d),i=!0)}}),i?this.track(r):Promise.resolve()}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ViewportCapture=void 0;var i=n(137),o=r(i),a=n(138),s=r(a),u=n(180);e.ViewportCapture=function(){function t(e){var n=e.root,r=e.filters,i=e.track;(0,o.default)(this,t),this.root=n,this.track=i,this.filters=r}return(0,s.default)(t,[{key:"handleEvent",value:function(t,e){var n=this,r={},i=!1;return this.filters.forEach(function(o){for(var a=[],s=t,c=n.root&&n.root.parentNode?n.root.parentNode:n.root;s&&s!==c;){if(s.getAttribute){var l=(0,u.getElementMarks)(s);l&&a.push(l)}s=s.parentNode}if(o.query(e,a)){var d=o.transform(e,a,n.handleEvent.bind(n,t));d&&Object.keys(d).length>0&&(Object.assign(r,d),i=!0)}}),i?this.track(r):Promise.resolve()}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.EventsCapture=void 0;var i=n(137),o=r(i),a=n(138),s=r(a);e.EventsCapture=function(){function t(e){var n=e.filters,r=e.track;(0,o.default)(this,t),this.filters=n,this.track=r}return(0,s.default)(t,[{key:"handleEvent",value:function(t){var e={},n=!1;return this.filters.forEach(function(r){if(r.query(t)){var i=r.transform(t,null);i&&Object.keys(i).length>0&&(Object.assign(e,i),n=!0)}}),n?this.track(e):Promise.resolve()}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filters=void 0;var r=n(221),i=n(222);e.filters=[{query:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{redirect:!1},i=n.redirect;return i&&(0,r.pathHasMark)(e,"item")},transform:function(t,e){var n="item";return(0,r.pathHasMark)(e,"user-image")?n="user-image":(0,r.pathHasMark)(e,"username")?n="username":(0,r.pathHasMark)(e,"message-time")?n="message-time":(0,r.pathHasMark)(e,"message-text")?n="message-text":(0,r.pathHasMark)(e,"item-title")?n="item-title":(0,r.pathHasMark)(e,"item-image")&&(n="item-image"),{type:"clicked",element:n,row:(0,i.safeParseInt)((0,r.getMarkValueFromPath)(e,{having:"item",key:"row"})),column:(0,i.safeParseInt)((0,r.getMarkValueFromPath)(e,{having:"item",key:"index"}))}}}]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=u(t),n={};return e.forEach(function(t){var e=t.match(m);e?n[e[1]]=e[2]:n[t]=!0}),Object.keys(n).length>0?n:null}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)throw"Can't get marks path without rootNode";for(var n=[],r=e.parentNode?e.parentNode:e;t&&t!==r;){if(t.getAttribute){var o=i(t);o&&n.push(o)}t=t.parentNode}return n}function a(t,e){return!!t.find(function(t){return t[e]})}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.having,r=e.key,i=null,o=t.find(function(t){return t[n]});return o&&(i=o[r]),i}function u(t){return(t.getAttribute(v)||"").split(" ").map(function(t){return t.trim()}).filter(function(t,e,n){return n.indexOf(t)===e}).filter(function(t){return""!==t})}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=u(t);n=n.filter(function(t){return t!==e}),n.push(e),t.setAttribute(v,n.join(" "))}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=u(t);n=n.filter(function(t){return t!==e}),t.setAttribute(v,n.join(" "))}function d(t,e){var n=u(t);return n.indexOf(e)>-1}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.container,r=void 0===n?null:n;r||(r=document);var i=r.querySelectorAll("["+v+'~="'+t+'"]');return[].concat((0,h.default)(i))}Object.defineProperty(e,"__esModule",{value:!0}),e.MARK_KEY=void 0;var p=n(90),h=r(p);e.getElementMarks=i,e.getMarksPathFromTarget=o,e.pathHasMark=a,e.getMarkValueFromPath=s,e.setElementMark=c,e.removeElementMark=l,e.elementHasMark=d,e.findMarkedElements=f;var v=e.MARK_KEY="data-spmark",m=/([^\s]+):([^\s]*)/},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.safeParseInt=function(t){var e=parseInt(t);return isNaN(e)?null:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){"viewed"===t?(d||(l=Date.now(),d=setTimeout(function(){e("in-viewport-2s"),u.default.trigger(c.IN_VIEW_2S)},2e3)),f||(f=!0,u.default.trigger(c.ENTERED_VIEWPORT),setTimeout(function(){e("after-viewed-3s")},3e3),setTimeout(function(){e("after-viewed-10s")},1e4))):"unviewed"===t&&(clearTimeout(d),d=null)}Object.defineProperty(e,"__esModule",{value:!0}),e.filters=void 0,e.viewportTimers=i;var o=n(224),a=n(225),s=n(150),u=r(s),c=n(152),l=(e.filters=[{query:function(t,e){return[a.MORE_HALF_ENTER,a.FULL_ENTER].indexOf(t)>-1},transform:function(t,e,n){return i("viewed",n),o.filters.onlyOnce({type:"viewed",element:"recirculation"})}},{query:function(t,e){return[a.MORE_HALF_LEAVE,a.FULL_LEAVE].indexOf(t)>-1},transform:function(t,e,n){return i("unviewed",n),o.filters.onlyOnce({type:"unviewed",element:"recirculation"})}},{query:function(t){return["in-viewport-2s","after-viewed-3s","after-viewed-10s"].indexOf(t)>-1},transform:function(t){return o.filters.onlyOnce({type:t})}}],null),d=null,f=!1},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.filters=e.Filters=void 0;var i=n(102),o=r(i),a=n(119),s=r(a),u=n(137),c=r(u),l=n(138),d=r(l),f=e.Filters=function(){function t(){(0,c.default)(this,t),this.buffer={}}return(0,d.default)(t,[{key:"getNow",value:function(){return Date.now()}},{key:"getParamsHash",value:function(t){var e=function t(e){return Object.keys(e).sort().reduce(function(n,r){if(Array.isArray(e[r]))throw new Error("Filters - can't hash Array values");if("function"==typeof e[r])throw new Error("Filters - can't hash Function values");return"undefined"!=typeof e[r]&&(null===e[r]||Array.isArray(e[r])||"object"!==(0,s.default)(e[r])?n.push([r,e[r]]):n.push([r,t(e[r])])),n},[])};return JSON.stringify(e(t))}},{key:"addToBuffer",value:function(t){var e=this.getParamsHash(t),n=this.buffer[e];if(n){var r=(0,o.default)({},this.buffer[e]);return this.buffer[e]={times:r.times+1,lastTime:this.getNow()},r}return this.buffer[e]={times:1,lastTime:this.getNow()},{times:0,lastTime:null}}},{key:"onlyOnce",value:function(t){return this.atMostNTimes(t,1)}},{key:"everyNTimes",value:function(t,e){var n=this.addToBuffer(t);return n.times%e===0?t:null}},{key:"atMostNTimes",value:function(t,e){var n=this.addToBuffer(t);return n.times=e?t:null}},{key:"throttleNMs",value:function(t,e){var n=this.addToBuffer(t);return Date.now()-n.lastTime>e?t:null}},{key:"withCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count",n=this.addToBuffer(t); return t[e]=n.times+1,t}}]),t}();e.filters=new f},function(t,e,n){"use strict";function r(t,e){var n=o;return t!==e&&(t===i.NOT_VISIBLE?e===i.LESS_HALF_VISIBLE?n=a:e===i.MORE_HALF_VISIBLE?n=s:e===i.FULL_VISIBLE&&(n=u):t===i.LESS_HALF_VISIBLE?e===i.NOT_VISIBLE?n=d:e===i.MORE_HALF_VISIBLE?n=s:e===i.FULL_VISIBLE&&(n=u):t===i.MORE_HALF_VISIBLE?e===i.NOT_VISIBLE?n=d:e===i.LESS_HALF_VISIBLE?n=l:e===i.FULL_VISIBLE&&(n=u):t===i.FULL_VISIBLE&&(e===i.NOT_VISIBLE?n=d:e===i.LESS_HALF_VISIBLE?n=l:e===i.MORE_HALF_VISIBLE&&(n=c))),n}Object.defineProperty(e,"__esModule",{value:!0}),e.VISIBILITY_CHANGE=e.FULL_LEAVE=e.MORE_HALF_LEAVE=e.LESS_HALF_LEAVE=e.FULL_ENTER=e.MORE_HALF_ENTER=e.LESS_HALF_ENTER=e.UNCHANGED=void 0,e.getChange=r;var i=n(226),o=e.UNCHANGED="UNCHANGED",a=e.LESS_HALF_ENTER="LESS_HALF_ENTER",s=e.MORE_HALF_ENTER="MORE_HALF_ENTER",u=e.FULL_ENTER="FULL_ENTER",c=e.LESS_HALF_LEAVE="LESS_HALF_LEAVE",l=e.MORE_HALF_LEAVE="MORE_HALF_LEAVE",d=e.FULL_LEAVE="FULL_LEAVE";e.VISIBILITY_CHANGE={UNCHANGED:o,LESS_HALF_ENTER:a,MORE_HALF_ENTER:s,FULL_ENTER:u,LESS_HALF_LEAVE:c,MORE_HALF_LEAVE:l,FULL_LEAVE:d}},function(t,e){"use strict";function n(t,e){var n=r;return t&&(e>0&&e<.5?n=i:e>=.5&&e<1?n=o:1===e&&(n=a)),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getStatus=n;var r=e.NOT_VISIBLE="NOT_VISIBLE",i=e.LESS_HALF_VISIBLE="LESS_HALF_VISIBLE",o=e.MORE_HALF_VISIBLE="MORE_HALF_VISIBLE",a=e.FULL_VISIBLE="FULL_VISIBLE";e.VISIBILITY_STATUS={NOT_VISIBLE:r,LESS_HALF_VISIBLE:i,MORE_HALF_VISIBLE:o,FULL_VISIBLE:a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filters=void 0;var r=n(224),i=n(117),o=n(222);e.filters=[{query:function(t){var e=t.type;return"loaded"===e},transform:function(t){var e=t.type,n=t.engineStatus,i=void 0===n?null:n;return r.filters.onlyOnce({type:e,engineStatus:i})}},{query:function(t){var e=t.type;return"navigate-forward"===e},transform:function(t){var e=(t.type,t.trigger);return"click"===e?r.filters.withCount({type:"navigate-click",element:"next-button",navigationDirection:"next"}):"swipe"===e?r.filters.withCount({type:"swiped",element:"items",navigationDirection:"next"}):void 0}},{query:function(t){var e=t.type;return"navigate-back"===e},transform:function(t){var e=(t.type,t.trigger);return"click"===e?r.filters.withCount({type:"navigate-click",element:"prev-button",navigationDirection:"prev"}):"swipe"===e?r.filters.withCount({type:"swiped",element:"items",navigationDirection:"prev"}):void 0}},{query:function(t){var e=t.type;return 0===e.indexOf("engine-")},transform:function(t){var e=t.type,n=t.itemIndex,a=void 0===n?null:n,s=t.engineVendorName,u=void 0===s?null:s,c=t.engineTagId,l=void 0===c?null:c,d=(0,i.getSlot)(a);return r.filters.withCount({type:"engine_status",engineStatus:e,row:(0,o.safeParseInt)(d.row),column:(0,o.safeParseInt)(d.column),engineVendorName:u,engineTagId:l})}}]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.lazyLoad=void 0;var i=n(229),o=r(i),a=1e4,s=new Promise(function(t){return(0,o.default)(t)}),u=new Promise(function(t){return setTimeout(t,a)});e.lazyLoad=function(){return Promise.race([s,u])}},function(t,e){"use strict";function n(t){"undefined"!=typeof window?window.addEventListener("load",t):t()}function r(){return o||"complete"===document.readyState}function i(t){t&&"function"==typeof t&&(r()?t():n(t))}Object.defineProperty(e,"__esModule",{value:!0});var o=!1;n(function(){o=!0}),e.default=i},function(t,e,n){"use strict";function r(){if(c&&!l)try{l=new IntersectionObserver(function(t){try{t.forEach(function(t){var e=d.find(function(e){return e.element===t.target});e&&a(t.intersectionRatio,e)})}catch(t){}},{threshold:[0,.5,1]})}catch(t){}}function i(t,e){if(c)try{d.push({element:t,callback:e,visibilityState:u.NOT_VISIBLE}),l&&l.observe(t)}catch(t){}}function o(t){if(c)try{d=d.filter(function(e){return e.element!==t}),l&&l.unobserve(t)}catch(t){}}function a(t,e){var n=e.visibilityState,r=(0,u.getStatus)(!0,t);e.visibilityState=r;var i=(0,s.getChange)(n,r);i!==s.UNCHANGED&&e.callback(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.CAN_OBSERVE_INTERSECTION=void 0,e.setupIntersectionObserver=r,e.observeElement=i,e.unobserveElement=o;var s=n(225),u=n(226),c=e.CAN_OBSERVE_INTERSECTION="function"==typeof window.IntersectionObserver,l=null,d=[]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ViewportObserver=void 0;var i=n(137),o=r(i),a=n(138),s=r(a),u=n(232),c=r(u),l=n(233),d=n(234),f=n(144),p=n(235);e.ViewportObserver=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.samplingRate,r=void 0===n?l.MEDIUM:n,i=e.container,a=void 0===i?void 0:i,s=e.isScrollableContainer,u=void 0!==s&&s;(0,o.default)(this,t),this.parentWindow=void 0,this.observedElements=[],this.isObserving=!1,this.scrollableContainer=u?a:void 0,this.handleEvent=(0,c.default)(this.handleEvent.bind(this),r),this.changeListener=new d.ViewportChangeListener(window,this.scrollableContainer),this.changeListener.onChange(this.handleEvent),a&&(this.observedContainer=this.observe(a))}return(0,s.default)(t,[{key:"setParentWindow",value:function(t,e){this.parentWindow={windowRect:t,frameRect:e},this.handleEvent()}},{key:"startObserving",value:function(){this.changeListener.start(),this.isObserving=!0}},{key:"stopObserving",value:function(){this.changeListener.stop(),this.isObserving=!1}},{key:"observe",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.stateChangeHandler,i=n.rectChangeHandler;this.isObserving||this.startObserving();var o=new p.ObservedElement(t,r,i);return this.observedElements.push(o),setTimeout(function(){var t=e.scrollableContainer?(0,f.getElementRect)(e.scrollableContainer):void 0;o.renderState({parentWindow:e.parentWindow,scrollableContainerRect:t})},0),o}},{key:"unobserve",value:function(t){this.observedElements=this.observedElements.filter(function(e){return e.element!==t}),this.isObserving&&0===this.observedElements.length&&this.stopObserving()}},{key:"handleEvent",value:function(){var t=this;if(this.observedContainer&&!this.observedContainer.state.isVisible)return void this.observedContainer.renderState({parentWindow:this.parentWindow});var e=this.scrollableContainer?(0,f.getElementRect)(this.scrollableContainer):void 0;this.observedElements.forEach(function(n){n.renderState({parentWindow:t.parentWindow,scrollableContainerRect:e})})}},{key:"getVisibilityState",value:function(t){var e,n;if(n=this.observedElements.find(function(e){return e.element===t}))e=n.state;else{n=new p.ObservedElement(t);var r=this.scrollableContainer?(0,f.getElementRect)(this.scrollableContainer):void 0;e=n.renderState({parentWindow:this.parentWindow,scrollableContainerRect:r})}return e}}]),t}()},function(t,e){"use strict";function n(t,e,n,r){var i,o,a,s,u=0;r||(r={});var c=function(){u=r.leading===!1?0:+new Date,i=null,s=t.apply(o,a),i||(o=a=null)},l=function(){var l=+new Date;u||r.leading!==!1||(u=l);var d=e-(l-u);return o=n||this,a=arguments,d<=0||d>e?(i&&(clearTimeout(i),i=null),u=l,s=t.apply(o,a),i||(o=a=null)):i||r.trailing===!1||(i=setTimeout(c,d)),s};return l.cancel=function(){clearTimeout(i),u=0,i=o=a=null},l}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.HIGH=200,r=e.MEDIUM=500,i=e.LOW=800;e.default={HIGH:n,MEDIUM:r,LOW:i}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ViewportChangeListener=void 0;var i=n(137),o=r(i),a=n(138),s=r(a);e.ViewportChangeListener=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;(0,o.default)(this,t),this.target=e,this.scrollableContainer=n,this.handlers=[],this.trigger=this.trigger.bind(this)}return(0,s.default)(t,[{key:"start",value:function(){this.target.addEventListener("scroll",this.trigger),this.target.addEventListener("resize",this.trigger),this.scrollableContainer&&this.scrollableContainer.addEventListener("scroll",this.trigger)}},{key:"stop",value:function(){this.target.removeEventListener("scroll",this.trigger),this.target.removeEventListener("resize",this.trigger),this.scrollableContainer&&this.scrollableContainer.removeEventListener("scroll",this.trigger)}},{key:"onChange",value:function(t){"function"==typeof t&&this.handlers.push(t)}},{key:"trigger",value:function(){this.handlers.forEach(function(t){return t()})}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ObservedElement=void 0;var i=n(137),o=r(i),a=n(138),s=r(a),u=n(236),c=n(144);e.ObservedElement=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};(0,o.default)(this,t),this.element=e,this.state=u.initialState,this.stateChangeHandler=n,this.rectChangeHandler=r}return(0,s.default)(t,[{key:"renderState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.parentWindow,n=t.scrollableContainerRect,r=(0,c.getElementRect)(this.element),i=(0,c.getWindowRect)();this.rectChangeHandler(i,r);var o=r.intersect(i);return n&&(o=o.intersect(n)),e&&(o=o.addFrameRect(e.frameRect),o=o.intersect(e.windowRect)),this.state=(0,u.getVisibilityState)(o,r,this.state),this.state.hasChange&&this.stateChangeHandler(this.state),this.state}}]),t}()},function(t,e,n){"use strict";function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!1,a=0,s=0;if(!t.isNegative())if(r=!0,e.isEmpty())a=1;else{var u=e.getArea();s=t.getArea(),a=s/u}var c=(0,i.getStatus)(r,a,s),l=(0,o.getChange)(n.status,c),d=l!==o.UNCHANGED;return{isVisible:r,visiblityRatio:a,visibleArea:s,status:c,change:l,hasChange:d}}Object.defineProperty(e,"__esModule",{value:!0}),e.initialState=void 0,e.getVisibilityState=r;var i=n(226),o=n(225);e.initialState={isVisible:!1,visiblityRatio:0,visibleArea:0,status:i.NOT_VISIBLE,change:o.UNCHANGED}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return new Promise(function(i,a){var s=l.config.nextPageUrl+"?cursor="+JSON.stringify(t);n&&(s+="&must="+n),r&&(s+="&should="+r),c.default.ajax({url:s},function(t,n,r){if(!t||t>300||t<200)a();else{var s=JSON.parse(n),u=s.markup,c=s.cursor,l=o(u,e);i({newItems:l,newCursor:c})}})})}function o(t,e){var n=document.createDocumentFragment();n.appendChild(document.createElement("div")),n.firstChild.innerHTML=t,e.onBeforeRender(n.firstChild);var r=n.querySelectorAll("."+l.cssSelectors.item);return[].concat((0,s.default)(r))}Object.defineProperty(e,"__esModule",{value:!0});var a=n(90),s=r(a);e.nextPageAjax=i;var u=n(135),c=r(u),l=n(143)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.lazyFonts=void 0;var i=n(8),o=r(i),a=n(11),s=r(a),u=n(228);e.lazyFonts=function(){var t=(0,s.default)(o.default.mark(function t(){var e;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,u.lazyLoad)();case 2:e=document.createElement("link"),e.href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800&subweset=latin,cyrillic-ext,cyrillic,greek-ext,greek,vietnamese,latin-ext",e.type="text/css",e.rel="stylesheet",document.head.appendChild(e);case 7:case"end":return t.stop()}},t,void 0)}));return function(){return t.apply(this,arguments)}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(137),o=r(i),a=n(138),s=r(a),u=n(240),c=r(u),l=n(241),d=r(l),f=n(249),p=r(f),h=n(257),v=r(h),m=function(t){function e(){return(0,o.default)(this,e),(0,c.default)(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,s.default)(e,[{key:"onAfterRender",value:function(t){(0,d.default)(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"onAfterRender",this).call(this,t)}}]),e}(v.default);e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(119),o=r(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(242),o=r(i),a=n(246),s=r(a);e.default=function t(e,n,r){null===e&&(e=Function.prototype);var i=(0,s.default)(e,n);if(void 0===i){var a=(0,o.default)(e);return null===a?void 0:t(a,n,r)}if("value"in i)return i.value;var u=i.get;if(void 0!==u)return u.call(r)}},function(t,e,n){t.exports={default:n(243),__esModule:!0}},function(t,e,n){n(244),t.exports=n(23).Object.getPrototypeOf},function(t,e,n){var r=n(58),i=n(57);n(245)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(21),i=n(23),o=n(32);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){t.exports={default:n(247),__esModule:!0}},function(t,e,n){n(248);var r=n(23).Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},function(t,e,n){var r=n(44),i=n(132).f;n(245)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(250),o=r(i),a=n(254),s=r(a),u=n(119),c=r(u);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,c.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,n){t.exports={default:n(251),__esModule:!0}},function(t,e,n){n(252),t.exports=n(23).Object.setPrototypeOf},function(t,e,n){var r=n(21);r(r.S,"Object",{setPrototypeOf:n(253).set})},function(t,e,n){var r=n(29),i=n(28),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(24)(Function.call,n(132).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={default:n(255),__esModule:!0}},function(t,e,n){n(256);var r=n(23).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(21);r(r.S,"Object",{create:n(40)})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a=n(240),s=r(a),u=n(249),c=r(u),l=n(8),d=r(l),f=n(11),p=r(f),h=n(83),v=r(h),m=n(90),g=r(m),y=n(137),_=r(y),b=n(138),w=r(b),E=n(258),A=n(281),S=n(143),O=n(150),T=r(O),k=n(152),I=n(117),x=n(228),P=n(113),C=n(282),R="800px",M=(0,P.getDebugger)("Default spot group"),L=(o=i=function(){function t(e,n){(0,_.default)(this,t),this.getAvailableSlots=function(t,e){var n=[];if("mobile"===e)n.push({element:t.querySelector('[data-spotim-slot="mobile"]'),row:2,pos:"center",name:"row2-center",device:"mobile"});else{var r=[].concat((0,g.default)(t.querySelectorAll('[data-spotim-slot="desktop"]')));r.forEach(function(t){var e=parseInt(t.getAttribute("data-spotim-slot-row")),r=t.getAttribute("data-spotim-slot-pos");n.push({element:t,row:e,pos:r,name:"row"+e+"-"+r})})}return n},this.spotId=e,this.element=n}return(0,w.default)(t,[{key:"forceLazyLoadMargin",value:function(){return null}},{key:"forceLazyLoadTimeout",value:function(){return null}},{key:"allowAds",value:function(){var t=!0,e=[].concat((0,g.default)(document.querySelectorAll("meta[name=spotim-ads]")));return e.forEach(function(e){M("Found ",e);var n=(e.getAttribute("content")||"").trim();switch(n){case"disable-all":M('Disabling all ads because of "disable-all" meta policy'),t=!1}}),t}},{key:"getSponsoredPlayer",value:function(){return!1}},{key:"assignClickHandlers",value:function(t){return(0,E.assignClickHandlers)(t,this.spotId,{traffic:S.config.referTraffic})}},{key:"pixelTrack",value:function(){var t=["https://ib.adnxs.com/getuid?https%3A%2F%2Fsync.spotim.market%2Fcsync%3Ft%3Da%26ep%3D271858%26extuid%3D%24UID","//sync.search.spotxchange.com/partner?source=211945"];t.forEach(function(t){M("Pixel Track",t);var e=document.createElement("img");e.setAttribute("src",t),e.setAttribute("width","0"),e.setAttribute("height","0"),Object.assign(e.style,{position:"absolute",opacity:0,pointerEvents:"none"}),document.body.appendChild(e)});var e=document.createElement("iframe");e.setAttribute("src","https://ads.pubmatic.com/AdServer/js/user_sync.html?p=156758&userIdMacro=PM_UID&predirect=https%3A%2F%2Fsync.spotim.market%2Fcsync%3Ft%3Da%26ep%3D281178%26extuid%3DPM_UID"),Object.assign(e.style,{position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,border:"none"}),document.body.appendChild(e)}},{key:"onBeforeRender",value:function(t){var e=this;this.pixelTrack(),this.assignClickHandlers(t),(0,I.removeItemByUrl)(t,{locationHref:window.location.href});var n=new IntersectionObserver(function(r){var i=(0,v.default)(r,1),o=i[0];o.isIntersecting&&(e.displayItemImages(t,e.getFirstVisibleItemsCount(t)),n.unobserve(t))},{rootMargin:R});n.observe(t)}},{key:"onAfterRender",value:function(t){var e=this;(0,I.resequenceIndexes)(t),T.default.once(k.PAGE_NEXT_CLICKED,function(){return e.displayItemImages(t)}),(0,C.handleMoatPixel)(t,this.spotId,S.config)}},{key:"displayItemImages",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,p.default)(d.default.mark(function t(e){var n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,x.lazyLoad)();case 2:n=[].concat((0,g.default)(e.querySelectorAll("[data-item-image]"))),r=[].concat((0,g.default)(e.querySelectorAll("[data-user-image]"))),i=function(t){t.style.backgroundImage||(t.style.backgroundImage="url("+t.getAttribute("data-item-image")+")")},o=function(t){t.style.backgroundImage||"NONE"===t.getAttribute("data-user-image")||(t.style.backgroundImage="url("+t.getAttribute("data-user-image")+")")},null===a?(n.forEach(i),r.forEach(o)):(n.slice(0,a).forEach(i),r.slice(0,a).forEach(o));case 7:case"end":return t.stop()}},t,this)}));return t}()},{key:"getFirstVisibleItemsCount",value:function(t){var e=document.documentElement.clientWidth,n=t.querySelectorAll('[data-spmark="items"]').length,r=Math.ceil(e/160);return r<6&&(r=6),r*n}}]),t}(),i.Player=function(t){function e(){return(0,_.default)(this,e),(0,s.default)(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return(0,c.default)(e,t),e}(A.Player),o);e.default=L},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.trackRedirect,i=void 0!==r&&r,a=n.handleUtm,s=void 0===a||a,u=n.enableSpotimUtm,l=void 0===u||u,d=n.referrer,f=void 0===d||d,h=n.commentId,v=void 0===h||h,m=n.traffic,g=void 0===m||m,_=n.qs,b=void 0===_?{}:_,w=n.transformUrl,E=void 0===w?function(t){return t}:w,A=(0,y.findMarkedElements)("item",{container:t}),S=o(t,e,{trackRedirect:i,referrer:f,commentId:v,traffic:g,qs:b,transformUrl:E});A.forEach(function(t){var e=(0,y.findMarkedElements)("item-link",{container:t})||[];[].concat((0,p.default)(e)).forEach(function(t){t.setAttribute("data-original-href",t.getAttribute("href")),T.config.openLinksInNewTab&&t.setAttribute("target","_blank"),s&&c(t,l),t.addEventListener("click",function(t){return S(t,!0)}),t.addEventListener("mousedown",function(t){[k,I].indexOf(t.which)>-1&&S(t,!1)})})})}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.trackRedirect,i=void 0!==r&&r,o=n.referrer,c=void 0===o||o,l=n.commentId,d=void 0===l||l,f=n.traffic,p=void 0===f||f,h=n.qs,v=void 0===h?{}:h,m=n.transformUrl,y=void 0===m?function(t){return t}:m,_=(0,g.getHostOptions)();return function(n,r){var o=T.config.openLinksInNewTab||1===n.button||n.ctrlKey||n.metaKey,l=!o;l&&n.preventDefault();var f=n.currentTarget,h=f.getAttribute("data-original-href");if(h=s(h),h=b.default.buildUrl(h,v),c&&(h=b.default.buildUrl(h,{spotim_referrer:"recirculation"})),d){var m=u(n.target,t);m&&(h=b.default.buildUrl(h,{spot_im_comment_id:m}))}if(_.redirectUrlTransform){var g=_.redirectUrlTransform(h);"undefined"!=typeof g&&(h=g)}if(y){var S=y(h);"undefined"!=typeof S&&(h=S)}var k={url:h};p&&(k.redirect={source:"recommendations",fromSpotId:e,toSpotId:e,redirectEndpoint:O.default.redirectUrl});var I=(0,w.buildSpotImUrl)(k);f.href=I;var x=function(){l&&r&&I&&(window.location.href=I)};return Promise.all([(0,E.captureUiEvent)(n,{redirect:!0}),i?a({source:"recommendations",fromSpotId:e,toSpotId:e}):Promise.resolve()]).then(x).catch(function(t){(0,A.reportError)(t,{errorSource:"click-handler"}),x()})}}function a(t){var e=t.url,n=t.source,r=t.fromSpotId,i=t.toSpotId;return new Promise(function(t){v.default.ajax({method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({events:[{type:"generated-page-view",version:1,value:{from:{spot_id:r,source:n,url:e},to:{spot_id:i,url:e}}}]}),url:m.track.getFullUrl()},function(e,n,r){!e||e>300||e<200?reject():t()})})}function s(t){try{return window.location.hostname.endsWith("rt.com")?t.replace(/([^\/])\?/,"$1/?"):t}catch(e){return t}}function u(t,e){var n=(0,y.getMarksPathFromTarget)(t,e);if(!(0,y.pathHasMark)(n,"item-title")){var r=(0,y.getMarkValueFromPath)(n,{having:"item",key:"message-id"});if(r)return r}return null}function c(t,e){var n=window.location.href,r=t.getAttribute("href");e&&T.config.enableSpotimUtm?r=b.default.buildUrl(r,{utm_source:"spotim",utm_medium:"spotim_recirculation"}):["utm_source","utm_medium","utm_term","utm_content","utm_campaign"].forEach(function(t){var e=b.default.getKey(n,t)||null;e&&(r=b.default.buildUrl(r,(0,d.default)({},t,e)))}),t.setAttribute("href",r),t.setAttribute("data-original-href",r)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(159),d=r(l),f=n(90),p=r(f);e.assignClickHandlers=i;var h=n(135),v=r(h),m=n(259),g=n(269),y=n(221),_=n(95),b=r(_),w=n(279),E=n(153),A=n(145),S=n(109),O=r(S),T=n(143),k=2,I=3},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=(0,u.default)(t,[]);return this.performRequest((0,a.default)({},e))}Object.defineProperty(e,"__esModule",{value:!0}),e.track=void 0;var o=n(102),a=r(o),s=n(157),u=r(s),c=n(260),l=n(267);e.track=(0,c.createResource)(l.apiUrl,"post","/track",i,{withCredentials:!0})},function(t,e,n){"use strict";function r(t,e,n,s){function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.replace(a,function(e,n){return t.hasOwnProperty(n)?t[n]:e})}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t+u(e)}function l(o){return o=(0,i.extendOptions)(p,o),r(t,e,n,s,o)}function d(){return{apiUrl:t,method:e,url:n,execute:s,options:p}}function f(t,n){var r=c(n);p=(0,i.extendOptions)(i.defaultOptions,p);var o;switch(e.toLowerCase()){case"get":o=h.get(r,t,p);break;case"delete":o=h.delete(r,p);break;case"patch":o=h.patch(r,t,p);break;case"post":o=h.post(r,t,p);break;case"put":o=h.put(r,t,p)}return o}var p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:o.RequestHandler;return{getUrl:u,getFullUrl:c,performRequest:f,extend:l,execute:s,getProperties:d}}Object.defineProperty(e,"__esModule",{value:!0}),e.createResource=r;var i=n(261),o=n(262),a=/\{\{(\w+)\}\}/gi},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){e in t&&(n[e]=t[e])}function o(t,e,n){if(e in t)if(n[e]){var r=n[e];n[e]=function(){t[e](),r()}}else n[e]=t[e]}function a(t,e,n){e in t&&Array.isArray(t[e])&&(n[e]=[].concat((0,c.default)(n[e]||[]),(0,c.default)(t[e])))}function s(){for(var t={},e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return n.withCredentials&&(e=e.withCredentials()),n.contentType&&(e=e.set("Content-Type",n.contentType),"application/x-www-form-urlencoded"!==n.contentType&&"text/plain"!==n.contentType||(e._data=JSON.stringify(e._data))),new Promise(function(r,i){t.invokeRequestInterceptors(e,n.requestInterceptors,n).then(function(e){var o=e.request;o.end(function(e,a){e?(i(e),n.error&&n.error(e)):t.invokeResponseInterceptors(o,a,n.responseInterceptors,n).then(function(e){var o=e.response;if(o.ok){var a=t.invokeParsers(o.body,n.parsers);r(a),n.success&&n.success(a)}else i(o),n.error&&n.error(o)})})})})}},{key:"invokeParsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.freeze(t);return e.reduce(function(t,e){return e(n,t)},n)}},{key:"invokeRequestInterceptors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(t,e){return t.then(function(t){var r=t.request;return e.requestInterceptor(r,n)})},Promise.resolve({request:t}))}},{key:"invokeResponseInterceptors",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n.reduce(function(e,n){return e.then(function(e){var i=e.response;return n.responseInterceptor(t,i,r)})},Promise.resolve({response:e}))}},{key:"get",value:function(e,n,r){var i=c.default.get(e,n);return t.performRequest(i,r)}},{key:"post",value:function(e,n,r){var i=c.default.post(e,n);return t.performRequest(i,r)}},{key:"patch",value:function(e,n,r){var i=c.default.patch(e,n);return t.performRequest(i,r)}},{key:"put",value:function(e,n,r){var i=c.default.put(e,n);return t.performRequest(i,r)}},{key:"delete",value:function(e,n){var r=c.default.del(e);return t.performRequest(r,n)}}]),t}()},function(t,e,n){function r(){}function i(t){if(!g(t))return t;var e=[];for(var n in t)o(e,n,t[n]);return e.join("&")}function o(t,e,n){if(null!=n)if(Array.isArray(n))n.forEach(function(n){o(t,e,n)});else if(g(n))for(var r in n)o(t,e+"["+r+"]",n[r]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(n));else null===n&&t.push(encodeURIComponent(e))}function a(t){for(var e,n,r={},i=t.split("&"),o=0,a=i.length;o=300)&&(r=new Error(e.statusText||"Unsuccessful HTTP response"),r.original=t,r.response=e,r.status=e.status)}catch(t){r=t}r?n.callback(r,e):n.callback(null,e)})}function p(t,e){var n=y("DELETE",t);return e&&n.end(e),n}var h;"undefined"!=typeof window?h=window:"undefined"!=typeof self?h=self:(console.warn("Using browser-only version of superagent in non-browser environment"),h=this);var v=n(171),m=n(264),g=n(265),y=t.exports=n(266).bind(null,f);y.getXHR=function(){if(!(!h.XMLHttpRequest||h.location&&"file:"==h.location.protocol&&h.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw Error("Browser-only verison of superagent could not find XHR")};var _="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};y.serializeObject=i,y.parseString=a,y.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},y.serialize={"application/x-www-form-urlencoded":i,"application/json":JSON.stringify},y.parse={"application/x-www-form-urlencoded":a,"application/json":JSON.parse},d.prototype.get=function(t){return this.header[t.toLowerCase()]},d.prototype._setHeaderProperties=function(t){var e=this.header["content-type"]||"";this.type=c(e);var n=l(e);for(var r in n)this[r]=n[r]},d.prototype._parseBody=function(t){var e=y.parse[this.type];return!e&&u(this.type)&&(e=y.parse["application/json"]),e&&t&&(t.length||t instanceof Object)?e(t):null},d.prototype._setStatusProperties=function(t){1223===t&&(t=204);var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.notFound=404==t,this.forbidden=403==t},d.prototype.toError=function(){var t=this.req,e=t.method,n=t.url,r="cannot "+e+" "+n+" ("+this.status+")",i=new Error(r);return i.status=this.status,i.method=e,i.url=n,i},y.Response=d,v(f.prototype);for(var b in m)f.prototype[b]=m[b];f.prototype.type=function(t){ return this.set("Content-Type",y.types[t]||t),this},f.prototype.responseType=function(t){return this._responseType=t,this},f.prototype.accept=function(t){return this.set("Accept",y.types[t]||t),this},f.prototype.auth=function(t,e,n){switch(n||(n={type:"basic"}),n.type){case"basic":var r=btoa(t+":"+e);this.set("Authorization","Basic "+r);break;case"auto":this.username=t,this.password=e}return this},f.prototype.query=function(t){return"string"!=typeof t&&(t=i(t)),t&&this._query.push(t),this},f.prototype.attach=function(t,e,n){return this._getFormData().append(t,e,n||e.name),this},f.prototype._getFormData=function(){return this._formData||(this._formData=new h.FormData),this._formData},f.prototype.callback=function(t,e){var n=this._callback;this.clearTimeout(),n(t,e)},f.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},f.prototype._timeoutError=function(){var t=this._timeout,e=new Error("timeout of "+t+"ms exceeded");e.timeout=t,this.callback(e)},f.prototype._appendQueryString=function(){var t=this._query.join("&");t&&(this.url+=~this.url.indexOf("?")?"&"+t:"?"+t)},f.prototype.end=function(t){var e=this,n=this.xhr=y.getXHR(),i=this._timeout,o=this._formData||this._data;this._callback=t||r,n.onreadystatechange=function(){if(4==n.readyState){var t;try{t=n.status}catch(e){t=0}if(0==t){if(e.timedout)return e._timeoutError();if(e._aborted)return;return e.crossDomainError()}e.emit("end")}};var a=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{n.onprogress=a.bind(null,"download"),n.upload&&(n.upload.onprogress=a.bind(null,"upload"))}catch(t){}if(i&&!this._timer&&(this._timer=setTimeout(function(){e.timedout=!0,e.abort()},i)),this._appendQueryString(),this.username&&this.password?n.open(this.method,this.url,!0,this.username,this.password):n.open(this.method,this.url,!0),this._withCredentials&&(n.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof o&&!this._isHost(o)){var s=this._header["content-type"],c=this._serializer||y.serialize[s?s.split(";")[0]:""];!c&&u(s)&&(c=y.serialize["application/json"]),c&&(o=c(o))}for(var l in this.header)null!=this.header[l]&&n.setRequestHeader(l,this.header[l]);return this._responseType&&(n.responseType=this._responseType),this.emit("request",this),n.send("undefined"!=typeof o?o:null),this},y.Request=f,y.get=function(t,e,n){var r=y("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},y.head=function(t,e,n){var r=y("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},y.options=function(t,e,n){var r=y("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},y.del=p,y.delete=p,y.patch=function(t,e,n){var r=y("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},y.post=function(t,e,n){var r=y("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},y.put=function(t,e,n){var r=y("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},function(t,e,n){var r=n(265);e.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},e.parse=function(t){return this._parser=t,this},e.serialize=function(t){return this._serializer=t,this},e.timeout=function(t){return this._timeout=t,this},e.then=function(t,e){if(!this._fullfilledPromise){var n=this;this._fullfilledPromise=new Promise(function(t,e){n.end(function(n,r){n?e(n):t(r)})})}return this._fullfilledPromise.then(t,e)},e.catch=function(t){return this.then(void 0,t)},e.use=function(t){return t(this),this},e.get=function(t){return this._header[t.toLowerCase()]},e.getHeader=e.get,e.set=function(t,e){if(r(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},e.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},e.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(r(t)){for(var n in t)this.field(n,t[n]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return this._getFormData().append(t,e),this},e.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},e.withCredentials=function(){return this._withCredentials=!0,this},e.redirects=function(t){return this._maxRedirects=t,this},e.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},e._isHost=function(t){var e={}.toString.call(t);switch(e){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}},e.send=function(t){var e=r(t),n=this._header["content-type"];if(e&&r(this._data))for(var i in t)this._data[i]=t[i];else"string"==typeof t?(n||this.type("form"),n=this._header["content-type"],"application/x-www-form-urlencoded"==n?this._data=this._data?this._data+"&"+t:t:this._data=(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(n||this.type("json"),this)}},function(t,e){function n(t){return null!==t&&"object"==typeof t}t.exports=n},function(t,e){function n(t,e,n){return"function"==typeof n?new t("GET",e).end(n):2==arguments.length?new t("GET",e):new t(e,n)}t.exports=n},function(t,e,n){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r;r=n(268);e.apiUrl=t.env.SKIP_CDN?r.url:r.cdn}).call(e,n(5))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.url="https://tracker.spot.im",e.cdn="https://www.spot.im/api/tracker"},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function parseSpotOptions(code){var hostOptions={};if(code)try{!function(c){try{var SPOTIM_OPTIONS={};eval(c),hostOptions=Object.assign(hostOptions,SPOTIM_OPTIONS)}catch(t){console.error("Failed to parse host options")}}(code)}catch(t){console.error("Failed to parse host options")}return hostOptions}function getHostOptions(){var t=hostOptions.resolve();return(0,_defaults.filterValidOptions)(t)}Object.defineProperty(exports,"__esModule",{value:!0});var _classCallCheck2=__webpack_require__(137),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(138),_createClass3=_interopRequireDefault(_createClass2),_class,_temp;exports.parseSpotOptions=parseSpotOptions,exports.getHostOptions=getHostOptions;var _defaults=__webpack_require__(270),_deepExtendObject=__webpack_require__(278),HostOptions=(_temp=_class=function(){function t(){(0,_classCallCheck3.default)(this,t),this.isExecuted=!1,this.hostOptions={}}return(0,_createClass3.default)(t,[{key:"resolve",value:function(){if(!this.isExecuted){this.isExecuted=!0;for(var e=document.querySelectorAll('script[type="'+t.scriptType+'"]'),n=0;n0&&(_.spot_im_state="typing"),null!==p&&(_.spot_im_scroll_to_comments=p),e=d.default.buildUrl(e,_),g&&(e=i({url:e,redirectParams:g})),e}Object.defineProperty(e,"__esModule",{value:!0});var a=n(147),s=r(a),u=n(280),c=r(u);e.makeRedirectUrl=i,e.buildSpotImUrl=o;var l=n(95),d=r(l)},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t}function o(t){var e=t.initialStyle,n=void 0===e?{}:e,r=t.onClose,i=void 0===r?function(){}:r,o=document.createElement("div");Object.assign(o.style,(0,s.default)({position:"absolute",transform:"translateX(-50%)",height:"0px",width:"0px",overflow:"hidden",zIndex:1},n)),o.className="sprc-lp",o.innerHTML='\n\t\t\n\t\t
\n\t\t\tAdvertisement\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t';var a=document.createElement("div");return Object.assign(a.style,{position:"absolute",top:"0px",left:"50%",transform:"translateX(-50%)"}),o.querySelector(".sprc-lp-close").addEventListener("click",i),o.appendChild(a),document.body.appendChild(o),{container:a,element:o}}Object.defineProperty(e,"__esModule",{value:!0}),e.Player=void 0;var a=n(102),s=r(a),u=n(241),c=r(u),l=n(137),d=r(l),f=n(138),p=r(f),v=n(240),m=r(v),g=n(249),y=r(g),_=n(118),b=r(_),w=n(144),E=100,A=function(t){function e(){return(0,d.default)(this,e),(0,m.default)(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:"union",value:function(t){var n=Math.min(this.top,t.top),r=Math.min(this.left,t.left),i=Math.max(this.right,t.right),o=Math.max(this.bottom,t.bottom);return new e({top:n,left:r,right:i,bottom:o})}}]),e}(w.Rect),S=function(){function t(e){(0,d.default)(this,t),this.value=e,this._changed=!1}return(0,p.default)(t,[{key:"set",value:function(t){this.value!==t&&(this._changed=!0),this.value=t}},{key:"get",value:function(){return this.value}},{key:"reset",value:function(){this._changed=!1}},{key:"changed",value:function(){return this._changed}},{key:"differentThan",value:function(t){return this.value===t}}]),t}(),O=function(t){return Math.ceil(t/(1e3/60))},T=600,k=O(T),I=300,x=(O(I),function(){function t(e){(0,d.default)(this,t),this.domNode=e}return(0,p.default)(t,[{key:"getDomNode",value:function(){return this.domNode}},{key:"setHeight",value:function(t){this.setStyle({height:t+"px"})}},{key:"getHeight",value:function(){return parseInt(window.getComputedStyle(this.domNode).height)}},{key:"setWidth",value:function(t){this.setStyle({width:h+"px"})}},{key:"getWidth",value:function(){return parseInt(window.getComputedStyle(this.domNode).width)}},{key:"setPosition",value:function(t){this.setStyle({position:""+t})}},{key:"getPosition",value:function(){return window.getComputedStyle(this.domNode).position}},{key:"setTop",value:function(t){this.setStyle({top:t+"px"})}},{key:"getTop",value:function(){return parseInt(window.getComputedStyle(this.domNode).top)}},{key:"setLeft",value:function(t){this.setStyle({left:t+"px"})}},{key:"getLeft",value:function(){return parseInt(window.getComputedStyle(this.domNode).left)}},{key:"setStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(this.domNode.style,t)}}]),t}()),P=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.update,i=void 0===r?function(){}:r;(0,d.default)(this,e);var o=(0,m.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.update=i,o}return(0,y.default)(e,t),(0,p.default)(e,[{key:"setHeight",value:function(t){(0,c.default)(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setHeight",this).call(this,t),this.update(t+"px")}},{key:"align",value:function(t){var e=t.documentTop;t.viewportTop,t.isVisible;this.setPosition("absolute"),this.setTop(e)}}]),e}(x),C=function(){function t(e){var n=e.element;(0,d.default)(this,t),this.element=n,this.props={state:new S("hidden"),alignment:new S("none"),position:new S(null),top:new S(null),left:new S(null),height:new S(null),width:new S(null)},this.alive=!0,this.frames=[]}return(0,p.default)(t,[{key:"kill",value:function(){this.alive=!1}},{key:"growTo",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return new Promise(function(r){if(e._growing)r();else{e._growing=!0;var o=function(t,e){return i(e)*t},a=function(t,e){return t-o(t,e)},u=e.element.getHeight(),c=Math.abs(t-u),l=(t||0)>u;if(c>0){for(var d=0;d0&&void 0!==arguments[0]?arguments[0]:{},n=function(t,e){return i(e)*t},r=function(t,e){return t-n(t,e)},o={height:this.element.getHeight(),width:this.element.getWidth(),position:this.element.getPosition(),top:this.element.getTop(),left:this.element.getLeft()},a=(0,s.default)({state:this.props.state.get(),alignment:this.props.alignment.get(),position:this.props.position.get(),top:this.props.top.get(),left:this.props.left.get(),height:this.props.height.get(),width:this.props.width.get()},o,e),u="hidden"===this.props.state.get()&&"expanded"===a.state,c="hidden"===this.props.state.get()&&"collapsed"===a.state,l="expanded"===this.props.state.get()&&"collapsed"===a.state,d="collapsed"===this.props.state.get()&&"expanded"===a.state,f=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=t.element.getHeight(),a=Math.abs((t.props.height.get()||0)-o),u=(t.props.height.get()||0)>o;if(a>0){t.frames[i]=t.frames[i]||{};for(var c=i;cthis.props.height.get()/4){for(var b=this.element.getHeight(),w=this.props.height.get(),E=0;Er.getHeight()){i.position="fixed",i.top=this.topOffset;this.stickyArea.getViewRect()}else{i.position="absolute";var o=this.staticArea.getViewRect();n.top>0?i.top=e.top:i.top=e.bottom-t.getDocRect().getHeight(),i.left=o.left+(o.right-o.left)/2}return i}}]),t}(),L=function(){function t(e){var n=e.area;(0,d.default)(this,t),this.observedArea=n,this.startViewTime=null,this.lastViewTime=null,this.achieved=!1}return(0,p.default)(t,[{key:"didAchieveViewability",value:function(){return this.achieved}},{key:"setDesiredDuration",value:function(t){this.desiredDuration=t}},{key:"start",value:function(){this.achieved=!1,this.reset()}},{key:"update",value:function(){if(!this.achieved){var t=parseInt(this.lastViewTime)-parseInt(this.startViewTime);!isNaN(t)&&t>this.desiredDuration&&(this.achieved=!0),this.observedArea.getVisiblePercent()>.5?(this.startViewTime||(this.startViewTime=Date.now()),this.lastViewTime=Date.now()):this.startViewTime=null}}},{key:"reset",value:function(){this.lastViewTime=null,this.startViewTime=null}}]),t}(),D=function(){function t(e){var n=e.playArea,r=e.stickyRange,i=e.staticArea,o=e.topOffset;(0,d.default)(this,t),this.playArea=n,this.stickyRange=r,this.staticArea=i,this.requireSticky=!1,this.firstStaticEntranceDone=!1,this.currentPosition="absolute",this.topOffset=o,this.topOffsetReached=!1}return(0,p.default)(t,[{key:"reset",value:function(){this.requireSticky=!1,this.firstStaticEntranceDone=!1}},{key:"setRequireSticky",value:function(t){this.requireSticky=t}},{key:"alignToStatic",value:function(){var t=this.staticArea.getStyleToAlign(this.playArea);this.playArea.interpolateTo((0,s.default)({alignment:"static"},t,{toArea:this.staticArea})),this.staticArea.getViewRect().top>=this.topOffset&&(this.topOffsetReached=!0),this.playArea.getVisiblePercent()>=1&&this.topOffsetReached&&(this.firstStaticEntranceDone=!0)}},{key:"alignToSticky",value:function(){var t=this.stickyRange.getStyleToAlign(this.playArea);this.playArea.interpolateTo((0,s.default)({alignment:"sticky"},t))}},{key:"alignAsNeeded",value:function(){this.stickyRange.hasElement()&&this.requireSticky&&this.firstStaticEntranceDone?this.alignToSticky():this.alignToStatic()}},{key:"changedPositionForViewabilityPursuit",value:function(){return"absolute"===this.currentPosition?"fixed"===this.playArea.getElement().getPosition()&&(this.currentPosition="fixed",!0):"absolute"===this.playArea.getElement().getPosition()&&(this.currentPosition="absolute",!0)}},{key:"getDesiredViewabilityDuration",value:function(){return"fixed"===this.currentPosition?3e3:2e3}}]),t}(),j=function(){function t(e){var n=e.size,r=e.playArea,i=e.stickyRange,o=e.staticArea;(0,d.default)(this,t),this.size=n,this.playArea=r,this.stickyRange=i,this.staticArea=o}return(0,p.default)(t,[{key:"expand",value:function(){this.playArea.interpolateTo({state:"expanded",width:this.size.width,height:this.size.height})}},{key:"collapse",value:function(){this.playArea.interpolateTo({state:"collapsed",width:this.size.width,height:0})}}]),t}(),N=function(){function t(e){var n=e.size,r=e.playArea,i=e.areaToSync;(0,d.default)(this,t),this.playArea=r,this.areaToSync=i,this.size=n,this.alive=!0}return(0,p.default)(t,[{key:"update",value:function(t){var e=this,n=this.areaToSync.getViewRect();if(t){var r=(this.areaToSync.getViewRect().getArea(),this.playArea.getViewRect().getArea());this.areaToSync.getVisiblePercent(),this.areaToSync.viewDistanceTo(this.playArea);if(r>0){var i=E;if(n.top>=i){var o=this.playArea.getElement().getHeight();this.areaToSync.getElement().setHeight(o)}}else n.top>=0&&this.areaToSync.growTo(0);this.areaToSync.interpolate()}else this.alive&&n.top>=0&&this.areaToSync.growTo(0).then(function(){return e.destroy()})}},{key:"tryCompleteSync",value:function(){var t=this;requestAnimationFrame(function(){t.update(!1),t.alive&&t.tryCompleteSync()})}},{key:"destroy",value:function(){this.alive=!1}}]),t}();e.Player=function(){function t(e){var n=e.findPlaceholders,r=void 0===n?Promise.resolve(null):n,i=e.updatePlaceholder,a=void 0===i?Promise.resolve(null):i,s=e.findStickyElement,u=void 0===s?Promise.resolve(null):s,c=e.findPlaceholderTop,l=void 0===c?Promise.resolve(null):c,f=e.staticDomNode,p=e.onClose,h=e.isSticky,v=void 0!==h&&h,m=e.isInread,g=void 0!==m&&m;(0,d.default)(this,t),this.onClose=p;var y=o({initialStyle:this.getInitialStyle(),onClose:p}),_=y.container,b=y.element;this.container=new x(_),this.element=new x(b),this.staticDomNode=f,this.findStickyElement=u,g?(this.findPlaceholders=r,this.updatePlaceholder=a,this.findPlaceholderTop=l):(this.findPlaceholders=function(){return Promise.resolve(null)},this.updatePlaceholder=function(){return Promise.resolve(!0)},this.findPlaceholderTop=function(){return Promise.resolve(null)}),this.shouldPlay=!0,this.isSticky=v,this.isInread=g}return(0,p.default)(t,[{key:"getInitialStyle",value:function(){return{}}},{key:"getTopOffset",value:function(){return b.default?window.innerHeight/2-this.size.height/2:E}},{key:"getAdContainer",value:function(){return this.container.getDomNode()}},{key:"tick",value:function(){(!this.cancelTime||this.cancelTime-Date.now()>0)&&(this.tickRaf=window.requestAnimationFrame(this.tick.bind(this))),this.shouldPlay&&(this.observer.setDesiredDuration(this.alignResolver.getDesiredViewabilityDuration()),this.isSticky?this.observer.didAchieveViewability()?this.alignResolver.setRequireSticky(!1):this.alignResolver.setRequireSticky(!0):this.alignResolver.setRequireSticky(!1),this.alignResolver.alignAsNeeded(),this.alignResolver.changedPositionForViewabilityPursuit()&&(this.observer.reset(), this.observer.setDesiredDuration(this.alignResolver.getDesiredViewabilityDuration())),this.playArea.interpolate(),this.displaySync.update(!0),this.observer.update())}},{key:"begin",value:function(t){var e=this,n=t.width,r=t.height;this.cancelTime=null,this.size={width:n,height:r},this.playArea=new C({element:this.element}),this.findPlaceholders().then(function(t){e.findStickyElement().then(function(r){var i=new x(r);e.stickyArea=new C({element:i});var o=new x(e.staticDomNode),a=new C({element:o}),u=(a.getViewRect(),(t||[]).filter(function(t){return t.viewportTop>=e.getTopOffset()}));if(t&&t.length>0&&a.getViewRect().top0){var c=u[0],l=c.documentTop,d=c.frameUniqueId,f=c.isVisible,p=c.placeholderId,h=c.viewportTop,v=e.updatePlaceholder.bind(null,d,p),m=document.createElement("div"),g=e.stickyArea.getStyleToAlign();Object.assign(m.style,(0,s.default)({},a.getStyleToAlign(),{width:n+"px",left:g.left-n/2+"px"})),o=new x(m),m.setAttribute("data-spotim-pid",p),m.setAttribute("data-spotim-fid",d),document.body.appendChild(m),o=new P(m,{update:v}),o.align({documentTop:l,viewportTop:h,isVisible:f}),a=new R({element:o,update:v})}e.stickyRange=new M({stickyArea:e.stickyArea,staticArea:a,topOffset:e.getTopOffset()}),e.observer=new L({area:e.playArea}),e.alignResolver=new D({playArea:e.playArea,stickyRange:e.stickyRange,staticArea:a,topOffset:e.getTopOffset()}),e.displayResolver=new j({size:e.size,playArea:e.playArea,stickyRange:e.stickyRange,staticArea:a}),e.displaySync=new N({size:e.size,playArea:e.playArea,areaToSync:a}),e.alignResolver.alignAsNeeded(),e.displayResolver.expand(),e.tickRaf=window.requestAnimationFrame(e.tick.bind(e))})})}},{key:"end",value:function(){this.displayResolver.collapse(),this.displaySync.tryCompleteSync()}},{key:"pause",value:function(){this.shouldPlay=!1}},{key:"resume",value:function(){this.shouldPlay=!0}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){var r=0,i=100,a=d(n),s=f(n),u=a&&p(r,i,s);u&&o(t,e)}function o(t,e){var n=window.location.hostname,r=(0,s.getDeviceType)(),i="recirculation",o="https://z.moatads.com/spotimdisplay705463185058/moatad.js#moatClientLevel1="+e+"&moatClientLevel2="+n+"&moatClientLevel3="+r+"&moatClientLevel4=Geo&moatClientSlicer1="+i;l("Moat pixel src: "+o);var a=document.createElement("script");a.setAttribute("src",o),t.appendChild(a)}Object.defineProperty(e,"__esModule",{value:!0}),e.handleMoatPixel=i;var a=n(113),s=n(98),u=n(283),c=r(u),l=(0,a.getDebugger)("spot-features"),d=function(t){return c.default.get(t,"ads.spot.features.recirculation.moat_enabled")},f=function(t){return c.default.get(t,"ads.spot.features.recirculation.moat_percent")},p=function(t,e,n){var r=parseFloat((Math.random()*(e-t)+t).toFixed(2));return n>r}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){for(var e=t.split("."),n=[],r=0;r0&&(0,g.isPhone)())return void O("only one add is allowed on mobile disabling player",s);var u=r.getSponsoredPlayer();u&&(s=u),window.location.search.indexOf("spotim_show_player")>-1&&(s.show=!0,t.element.setAttribute("data-spotim-force-show",""));var c=null;x&&s.passback_enabled&&(c=(0,w.createPlayer)(s.passback_code,"Passback player","300","250","display","DFP")),T[t.name]=new y.AdsPlayer({spotId:e,player:s,slot:t,overlayPlayer:P,passbackPlayer:c,rcElement:n})}}),Object.keys(T).length>0&&(b.adjustLayoutForAds(n),document.querySelector('a[data-spmark="ad-choice"]').style.display="block"),Object.keys(T).forEach(function(t){T[t].initialize()}),t.next=44;break;case 43:O("no ads config");case 44:R=function t(){window.$$SPOTIM_ACTIVATE_RC_CALLED$$=!0,document.removeEventListener(w.ACTIVATE_MONETIZATION_EVENT,t)},document.addEventListener(w.ACTIVATE_MONETIZATION_EVENT,R,!1),n.setAttribute("data-spotim-engine",!0);case 47:case"end":return t.stop()}},t,this,[[1,11]])}));return function(e,n,r,i){return t.apply(this,arguments)}}(),n(113)),f=n(269),p=n(285),h=n(270),v=n(95),m=i(v),g=n(98),y=n(286),_=n(298),b=r(_),w=n(117),E=n(283),A=i(E),S=n(299),O=(0,d.getDebugger)("ads");window.$$SPOTIM_ACTIVATE_RC_CALLED$$=!1;var T={},k=1e4},function(t,e,n){"use strict";function r(t){var e=Object.keys(o).reduce(function(e,n){var r=t.getAttribute(n);if(r){var i=o[n];switch(r){case"true":r=!0;break;case"false":r=!1}e[i]=r}return e},{});return(0,i.filterValidOptions)(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.supportedAttributesMap=void 0,e.getElementOptions=r;var i=n(270),o=e.supportedAttributesMap={"data-spot-id":"spotId","data-post-id":"postId","data-ios-url":"iosUrl","data-android-url":"androidUrl","data-conversation-id":"conversationId","data-implementation-id":"implementationId","data-disqus-identifier":"disqusIdentifier","data-disqus-url":"disqusUrl","data-gigya-streamid":"gigyaStreamId","data-gigya-categoryid":"gigyaCategoryId","data-wp-import-endpoint":"wpImportEndpoint","data-facebook-url":"facebookUrl","data-messages-count":"pageSize","data-sort-by":"conversationSort","data-post-url":"postUrl","data-load-more-in-modal":"loadMoreInModal","data-social-reviews":"isStarsRatingEnabled","data-lazy-load":"isLazyLoad","data-live-blog":"isLiveBlogConversation","data-live-event-code":"liveEventCode","data-reporters":"reporters","data-reporter-badge-text":"reporterBadgeText","data-refer-traffic":"referTraffic","data-disable-navigation":"disableNavigation","data-community-question":"conversationCommunityQuestion","data-allow-va":"allowVA"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.AdsPlayer=void 0;var i=n(137),o=r(i),a=n(138),s=r(a),u=n(113),c=n(145),l=n(287),d=n(150),f=r(d),p=n(95),h=r(p),v=n(98),m=n(152),g=n(153),y=n(230),_=(n(97),n(117)),b=(0,u.getDebugger)("ads-player"),w=(0,l.once)(function(t){return(0,g.captureEvent)(t)}),E=function(t,e){return"video"===t.type&&e&&"LQKD"!==t.server};e.AdsPlayer=function(){function t(e){var n=e.spotId,r=e.player,i=e.slot,a=e.rcElement,s=e.overlayPlayer,u=e.isOverlayPlayer,c=e.passbackPlayer,l=e.isPassbackPlayer;(0,o.default)(this,t),this.spotId=n,this.player=r,this.slot=i,this.overlayPlayer=s,this.isOverlayPlayer=u,this.passbackPlayer=c,this.isPassbackPlayer=l,this.rcElement=a,this.deferred=r.waitForEvent&&!window.$$SPOTIM_ACTIVATE_RC_CALLED$$,this.createPlacement=function(){},this.isShowing=!1}return(0,s.default)(t,[{key:"initialize",value:function(){var t=this;if(b("initialize player",this.player),this.deferred){b("player is deferred");var e=function e(){b(_.ACTIVATE_MONETIZATION_EVENT+" activation event fired"),t.prepareForActivation(),document.removeEventListener(_.ACTIVATE_MONETIZATION_EVENT,e)};document.addEventListener(_.ACTIVATE_MONETIZATION_EVENT,e,!1)}else this.player.delayLoad?(b("player load is delayed by "+1e3*this.player.delayLoad),setTimeout(function(){t.prepareForActivation()},1e3*this.player.delayLoad)):this.prepareForActivation()}},{key:"prepareForActivation",value:function(){try{var t=this.player.server.toLowerCase();"dfp"===t&&(t="display");var e=n(288)("./"+t+"/index.js");this.PlacementClass=e.Placement;var r=!0;if(!r&&document.querySelector('[data-spotim-module="recirculation"] [data-spotim-engine-type="'+t+'"]'))return void b("Another RC loaded, but type '"+t+"' doesn't support multiple placements");this.slot.element.setAttribute("data-spotim-engine-type",t);var i="[data-spotim-slot-placement]";this.isOverlayPlayer?i="[data-spotim-overlay-slot-placement]":this.isPassbackPlayer&&(i="[data-spotim-passback-slot-placement]"),this.adContainer=this.slot.element.querySelector(i),f.default.trigger("ad-container-active",this),this.activate()}catch(t){b("Ads initialize error",t),(0,c.reportError)(t,{errorSource:"demand-initialize",demand:this.player.server})}}},{key:"activate",value:function(){var t=this;return b("Ads will initialize for "+this.spotId+" with demand "+this.player.server),""===this.player.code.trim()?void b("Received empty tag. Doing nothing.",this.player):(w({type:"engine-monetization-load"}),(0,g.captureEvent)({type:"engine-will-initialize",itemIndex:this.slotName,engineVendorName:this.player.server,engineTagId:this.player.id}),void this.placeAd({onEvent:function(t,e,n,r){b("Ads event: "+t+", for demand: "+e+", tagName: "+n+", in itemIndex: "+r),(0,g.captureEvent)({type:t,itemIndex:r})}}).then(function(e){(0,y.observeElement)(e,function(){for(var t=arguments.length,n=Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=(n.onEvent,h.default.getKey(window.location.href.toLowerCase(),"utm_source")),i=(0,v.resolveUserPlatform)(),o={domain:window.location.hostname,os:i,spotId:this.spotId,utm:r||""};return this.placement=new this.PlacementClass(this.adContainer,{slot:this.slot,row:this.slot.row,pos:this.slot.pos,player:this.player,subid:o,utmSource:r,spotId:this.spotId,clientPlatform:i,itemIndex:this.slotName,pageUrl:document.location.href,width:this.player.size.width,height:this.player.size.height,isOverlayPlayer:this.isOverlayPlayer,isPassbackPlayer:this.isPassbackPlayer,adsPlayer:this,onContentVideoStart:function(t){e.isShowing=!0,f.default.trigger(m.AD_DISPLAY_STARTED,{width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos}),f.default.trigger("update-ad-slot",{server:e.player.server,row:e.slot.row,pos:e.slot.pos,width:e.player.size.width,height:e.player.size.height,itemDisplay:"hide",adDisplay:"show"})},onContentVideoFinish:function(t){e.isShowing=!1,f.default.trigger(m.AD_DISPLAY_FINISHED,{width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos}),f.default.trigger("update-ad-slot",{server:e.player.server,width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos,itemDisplay:"show",adDisplay:"hide"})},onAdTagLoad:function(t,e,n){},onAdTagLoadSuccess:function(t,e,n){},onAdTagLoadFail:function(t,e,n){},onAdDisplayStart:function(t,n,r){e.isShowing=!0,f.default.trigger(m.AD_DISPLAY_STARTED,{width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos}),f.default.trigger("update-ad-slot",{server:e.player.server,row:e.slot.row,pos:e.slot.pos,width:e.player.size.width,height:e.player.size.height,itemDisplay:"hide",adDisplay:"show"})},onAdDisplayFinish:function(t,n,r){e.isShowing=!1,f.default.trigger(m.AD_DISPLAY_FINISHED,{width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos}),f.default.trigger("update-ad-slot",{server:e.player.server,width:e.player.size.width,height:e.player.size.height,row:e.slot.row,pos:e.slot.pos,itemDisplay:"show",adDisplay:"hide"})},onPlayerDone:function(t,n,r){f.default.trigger("update-ad-slot",{server:e.player.server,width:300,height:250,row:e.slot.row,pos:e.slot.pos,itemDisplay:"hide",adDisplay:"show"})},onAdImpression:function(t,e,n){},onAdViewableImpression:function(t,e,n){},onAdViewableIab:function(t,e,n){},onAdViewedFirstQuartile:function(t,e,n){},onAdClickThrough:function(t,e,n){},onAdNoFill:function(t,e,n){},onDispose:function(){b("Disposing "+(e.isOverlayPlayer?"overlay player":"")+" "+e.player.server+" placement"),Object.keys(e.placement).forEach(function(t){t.startsWith("on")&&(e.placement[t]=function(){})}),e.adContainer.innerHTML=""}}),this.placement.create().then(function(){e.passbackPlayer&&(e.placement.passbackAdsPlayer=new t({spotId:e.spotId,player:e.passbackPlayer,slot:e.slot,rcElement:e.rcElement,isPassbackPlayer:!0})),E(e.player,e.overlayPlayer)&&(b("Ads Player: Overlay player detected. Creating overlay ads player"),Object.assign(e.adContainer.style,{opacity:0}),e.placement.overlayAdsPlayer=new t({spotId:e.spotId,player:e.overlayPlayer,slot:e.slot,rcElement:e.rcElement,isOverlayPlayer:!0}),e.placement.overlayAdsPlayer.initialize())}).catch(function(t){throw t})}}]),t}()},function(t,e){"use strict";function n(t,e){var n;return function(){return t&&(n=t.apply(e||this,arguments),t=null),n}}Object.defineProperty(e,"__esModule",{value:!0}),e.once=n},function(t,e,n){function r(t){return n(i(t))}function i(t){return o[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var o={"./cedato/index.js":289,"./display/index.js":290,"./inline/index.js":292,"./sr/index.js":293};r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=288},function(module,exports,__webpack_require__){"use strict";function _interopRequireWildcard(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Placement=exports.SUPPORT_MULTI_PLACEMENTS=exports.ADS_DEMAND_NAME=void 0;var _toConsumableArray2=__webpack_require__(90),_toConsumableArray3=_interopRequireDefault(_toConsumableArray2),_classCallCheck2=__webpack_require__(137),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(138),_createClass3=_interopRequireDefault(_createClass2),_debug=__webpack_require__(113),_pubsub=__webpack_require__(150),_pubsub2=_interopRequireDefault(_pubsub),_index=__webpack_require__(290),_utils=__webpack_require__(291),utils=_interopRequireWildcard(_utils),adsDebug=(0,_debug.getDebugger)("ads"),ADS_DEMAND_NAME=exports.ADS_DEMAND_NAME="Cedato",SUPPORT_MULTI_PLACEMENTS=exports.SUPPORT_MULTI_PLACEMENTS=!1,initPassbackHandler=function(t,e){adsDebug("cedato: initPassbackHandler()",t,e);var n=document.createElement("iframe");n.setAttribute("width","300"),n.setAttribute("height","250"),n.style.border="none";var r=t.adContainer.parentNode.querySelector("[data-spotim-passback-slot-placement]");adsDebug("cedato: initPassbackHandler() passbackSlot",r),r&&r.appendChild(n);var i=(0,_index.normalizeDisplayConfig)(e.innerHTML,t.pageUrl,t.subid,{reloadAfter:t.player.reload_after}),o=i.replace(/\\\//g,"/"),a=""+o+"";n.contentWindow.document.open(),n.contentWindow.document.write(a),n.contentWindow.document.close(),adsDebug("cedato: initPassbackHandler() display:none on adContainer",t.adContainer),Object.assign(t.adContainer.style,{display:"none"}),_pubsub2.default.trigger("update-ad-slot",{server:t.player.server,row:t.row,pos:t.pos,width:300,height:250,itemDisplay:"hide",adDisplay:"show"})},Placement=exports.Placement=function(){function Placement(t,e){var n=e.row,r=e.pos,i=e.player,o=void 0===i?{}:i,a=e.subid,s=void 0===a?{}:a,u=e.itemIndex,c=void 0===u?-1:u,l=e.width,d=void 0===l?300:l,f=e.height,p=void 0===f?250:f,h=e.pageUrl,v=void 0===h?"":h,m=e.bannerHtml,g=void 0===m?"":m,y=e.onContentVideoStart,_=void 0===y?function(){}:y,b=e.onContentVideoFinish,w=void 0===b?function(){}:b,E=e.onAdTagLoad,A=void 0===E?function(){}:E,S=e.onAdTagLoadSuccess,O=void 0===S?function(){}:S,T=e.onAdTagLoadFail,k=void 0===T?function(){}:T,I=e.onAdDisplayStart,x=void 0===I?function(){}:I,P=e.onAdDisplayFinish,C=void 0===P?function(){}:P,R=e.onAdImpression,M=void 0===R?function(){}:R,L=e.onAdViewableImpression,D=void 0===L?function(){}:L,j=e.onAdViewableIab,N=void 0===j?function(){}:j,F=e.onAdViewedFirstQuartile,U=void 0===F?function(){}:F,q=e.onAdClickThrough,V=void 0===q?function(){}:q,H=e.onAdNoFill,B=void 0===H?function(){}:H,z=e.onDispose,$=void 0===z?function(){}:z;(0,_classCallCheck3.default)(this,Placement),Object.assign(this,{adContainer:t,row:n,pos:r,player:o,itemIndex:c,width:d,height:p,pageUrl:v,onContentVideoStart:_,onContentVideoFinish:w,onAdTagLoad:A,onAdTagLoadFail:k,onAdDisplayStart:x,onAdDisplayFinish:C,onAdImpression:M,onAdViewableImpression:D,onAdViewableIab:N,onAdViewedFirstQuartile:U,onAdClickThrough:V,onAdNoFill:B,onDispose:$,onAdTagLoadSuccess:O,bannerHtml:g,subid:s})}return(0,_createClass3.default)(Placement,[{key:"showPassback",value:function(t,e,n){adsDebug("cedato: showPassback()",t,e,n),this.overlayAdsPlayer&&(adsDebug("cedato: showPassback(): disposing overlay"),this.overlayAdsPlayer.placement.onDispose()),this.onAdDisplayStart(ADS_DEMAND_NAME,e,this.itemIndex),_pubsub2.default.trigger("update-ad-slot",{server:this.player.server,row:this.row,pos:this.pos,width:300,height:250,itemDisplay:"hide",adDisplay:"show"}),n&&n.style&&(n.style.width="300px",n.style.height="250px"),adsDebug("cedato: showPassback(): will call initPassbackHandler"),initPassbackHandler(this,t),this.overlayAdsPlayer&&this.overlayAdsPlayer.placement.onDispose()}},{key:"createAdStartTimer",value:function(t,e,n){var r=this;adsDebug("cedato: createAdStartTimer()");var i=t.getAttribute("data-timeout"),o=1e3*parseInt(i,10);return adsDebug("cedato: createAdStartTimer() timeOut",o),setTimeout(function(){return r.showPassback(t,e,n)},o)}},{key:"create",value:function create(){var _this2=this;return new Promise(function(resolve,reject){try{var tagName=_this2.player.name,rawConfig=utils.composeRawConfig(_this2.player.code,_this2.pageUrl,_this2.subid);if(adsDebug("Cedato player config",_this2.player),adsDebug("Cedato player raw config",rawConfig),!rawConfig)return adsDebug("Cedato can't find config for player",_this2.player),reject("Cedato can't find config for player",_this2.player);_this2.onAdTagLoad(ADS_DEMAND_NAME,tagName,_this2.itemIndex);var fragment=document.createElement("div");fragment.innerHTML=rawConfig;var playerDiv=fragment.querySelector("div");if(!playerDiv)return resolve();var cedatoDivId=playerDiv.getAttribute("id"),script=fragment.querySelector("script"),scriptContent=script.textContent||script.text,scriptParent=script.parentNode;scriptParent.removeChild(script);var passbackScript=fragment.querySelector('script[type="cedato/passback"]');passbackScript&&passbackScript.parentNode.removeChild(passbackScript);var attrs=[].concat((0,_toConsumableArray3.default)(script.attributes));_this2.adContainer.appendChild(playerDiv);var scriptTag=document.createElement("script");if(attrs.forEach(function(t){scriptTag.setAttribute(t.nodeName,t.nodeValue)}),playerDiv.appendChild(scriptTag),scriptContent)try{eval(scriptContent)}catch(t){return scriptTag.textContent=scriptContent,adsDebug("Cedato content eval error",t),reject(t)}var adStartTimer=null;passbackScript&&(passbackScript.innerHTML=(0,_index.normalizeDisplayConfig)(passbackScript.innerHTML,_this2.pageUrl,_this2.subid),adsDebug("Cedato passback",passbackScript.outerHTML),playerDiv.appendChild(passbackScript),adStartTimer=_this2.createAdStartTimer(passbackScript,tagName,playerDiv)),window.CEDATO_INIT=window.CEDATO_INIT||{},window.CEDATO_INIT[cedatoDivId]=utils.createCedatoInit(_this2,adStartTimer,ADS_DEMAND_NAME,tagName,_this2.showPassback.bind(_this2,passbackScript,tagName,playerDiv));var shouldAlwaysShowPlayer=_this2.player&&_this2.player.show||"true"===playerDiv.getAttribute("always-show-player");return shouldAlwaysShowPlayer===!0&&_this2.onContentVideoStart(_this2.itemIndex),resolve()}catch(t){return _this2.onAdTagLoadFail(ADS_DEMAND_NAME,_this2.player.name,_this2.itemIndex),adsDebug("Cedato init error",t),reject(t)}})}}]),Placement}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Placement=e.normalizeDisplayConfig=e.SUPPORT_MULTI_PLACEMENTS=e.ADS_DEMAND_NAME=void 0;var i=n(137),o=r(i),a=n(138),s=r(a),u=n(113),c=n(150),l=(r(c),n(95)),d=(0,u.getDebugger)("ads"),f=e.ADS_DEMAND_NAME="DISPLAY",p=(e.SUPPORT_MULTI_PLACEMENTS=!0,e.normalizeDisplayConfig=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.reloadAfter,o=void 0===i?0:i;if(t=t.replace(/\{RND\}/g,Math.random().toString()).replace(/\{PAGE_URL\}/g,e).replace(/\{DOMAIN\}/g,window.location.hostname).replace(/</g,"<").replace(/>/g,">"),t.indexOf("static.criteo.net")>-1){var a=h.exec(t)[0];t=t.replace(a,a+'"extraData":{"subid":"'+(0,l.queryStringFromObject)(n)+'"},')}if(t.lastIndexOf(".com/tag/js/gpt.js")>-1){t=t.replace("googletag.cmd = googletag.cmd || [];","googletag.cmd = [];");var s=v({spotId:n.spotId});t=t.replace(".addService(googletag.pubads());",s+".addService(googletag.pubads());"),t=t.replace(".addService(googletag.pubads());",".set('page_url','"+n.domain+"').addService(googletag.pubads());"),o&&(t=t.replace(".addService(googletag.pubads());",".addService(googletag.pubads());\n var counter=0;\n var intervalId=setInterval(function(){\n googletag.pubads().refresh();\n counter++;\n if( counter === 3 ){\n clearInterval(intervalId)\n }\n },"+1e3*o+")"))}return t.indexOf("text/x-spotim-passback")>-1&&(t=t.replace(/\n/g,"@@@PLACEHOLDER").match(/(.*)<\/script>/)[1].replace(/@@@PLACEHOLDER/g,"\n")),t}),h=/"zoneid".*/,v=function(t){return Object.keys(t).reduce(function(e,n){return t[n]&&(e+=".setTargeting('"+n+"','"+t[n]+"')"),e},"")};e.Placement=function(){function t(e,n){var r=n.player,i=void 0===r?{}:r,a=n.itemIndex,s=void 0===a?-1:a,u=n.width,c=void 0===u?300:u,l=n.height,d=void 0===l?250:l,f=n.pageUrl,p=void 0===f?"":f,h=n.subid,v=void 0===h?{}:h,m=n.onContentVideoStart,g=void 0===m?function(){}:m,y=n.onContentVideoFinish,_=void 0===y?function(){}:y,b=n.onAdTagLoad,w=void 0===b?function(){}:b,E=n.onAdTagLoadFail,A=void 0===E?function(){}:E,S=n.onAdDisplayStart,O=void 0===S?function(){}:S,T=n.onAdDisplayFinish,k=void 0===T?function(){}:T,I=n.onDispose,x=void 0===I?function(){}:I;(0,o.default)(this,t),Object.assign(this,{adContainer:e,player:i,itemIndex:s,width:c,height:d,pageUrl:p,onContentVideoStart:g,onContentVideoFinish:_,onAdTagLoad:w,onAdTagLoadFail:A,onAdDisplayStart:O,onAdDisplayFinish:k,onDispose:x,subid:v}),this.DISPLAY_CLOSE="$$SPOTIM_DISPLAY_CLOSE_"+this.itemIndex+"$$",this.DISPLAY_RELOAD="$$SPOTIM_DISPLAY_RELOAD_"+this.itemIndex+"$$"}return(0,s.default)(t,[{key:"create",value:function(){var t=this;return new Promise(function(e,n){try{var r=p(t.player.code,t.pageUrl,t.subid,{reloadAfter:t.player.reload_after}),i=t.player.name;t.registerForFallbackEvent(),d("Display config",t.player),t.onAdTagLoad(f,i,t.itemIndex),t.onAdDisplayStart(f,i,t.itemIndex);var o=document.createElement("iframe");Object.assign(o.style,{width:"100%",height:"100%",border:"none"}),r=""+r+"",t.adContainer.appendChild(o),o.contentWindow.document.open(),o.contentWindow.document.write(r),o.contentWindow.document.close(),t.player.closeAfter&&(d("Display will close after "+t.player.closeAfter+" seconds."),window[t.DISPLAY_CLOSE]=setTimeout(function(){d("Display timeout. Closing."),t.onAdDisplayFinish(),clearInterval(window.$$SPOTIM_DISPLAY_RELOAD$$)},1e3*t.player.closeAfter)),d("Display content",r),e()}catch(e){t.onAdTagLoadFail(f,t.player.name,t.itemIndex),d("Display init error",e),n(e)}})}},{key:"registerForFallbackEvent",value:function(){var t=this;d("registerForFallbackEvent");var e=function e(n){var r=/^spotim-display-fallback$/.exec(n.data);null!==r&&(d("calling onAdDisplayFinish from registerForFallbackEvent"),t.onAdDisplayFinish(),clearTimeout(window[t.DISPLAY_CLOSE]),clearInterval(window[t.DISPLAY_RELOAD]),window.top.removeEventListener("message",e,!1))};window.top.addEventListener("message",e,!1)}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.getPassbackFrame=e.createCedatoInit=e.composeRawConfig=void 0;var i=n(102),o=r(i),a=n(95),s=n(113),u=(0,s.getDebugger)("ads");e.composeRawConfig=function(t,e,n){var r=t;switch(r){case"ineractive":r='
';break;case"loopme":r='
';break;case"vdopia":r='
'}return r=r.replace(/\{RND\}/g,Math.random().toString()).replace(/\{PAGE_URL\}/g,e).replace(/\{DOMAIN\}/g,window.location.hostname).replace(/\{SID\}/g,encodeURIComponent((0,a.queryStringFromObject)((0,o.default)({},n),!1))).replace(/\{URL\}/g,e).replace(/\{CB\}/g,Math.random().toString())},e.createCedatoInit=function(t,e,n,r,i){return function(){this.overrideInitParams({allowSound:!1}),this.on("adstart",function(){u("Cedato event: adstart"),t.adContainer?(Object.assign(t.adContainer.style,{opacity:1}),u("adContainer got opacity: 1",t.adContainer)):u("adContainer not found"),e&&(u("Cedato passback clear"),clearTimeout(e)),t.onAdDisplayStart(n,r,t.itemIndex),t.overlayAdsPlayer&&(u("Cedato adstart - disposing overlay"),t.overlayAdsPlayer.placement.onDispose())}),t.player&&t.player.show||this.on("adcomplete",function(){u("Cedato event: adcomplete"),t.adContainer?(u("Cedato adcomplete - hiding adContainer with display:none"),Object.assign(t.adContainer.style,{display:"none"})):u("Cedato adcomplete - trying to hide ad container, but wasn't found"),i(),t.onAdDisplayFinish.bind(null,n,r,t.itemIndex)})}},e.getPassbackFrame=function(t){var e=t.adContainer,n=e.querySelector("iframe");return n||(n=document.createElement("iframe"),e.appendChild(n)),n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Placement=e.SUPPORT_MULTI_PLACEMENTS=e.ADS_DEMAND_NAME=void 0;var i=n(90),o=r(i),a=n(137),s=r(a),u=n(138),c=r(u),l=n(113),d=n(150),f=(r(d),(0,l.getDebugger)("ads")),p=e.ADS_DEMAND_NAME="INLINE";e.SUPPORT_MULTI_PLACEMENTS=!0,e.Placement=function(){function t(e,n){var r=n.player,i=void 0===r?{}:r,o=n.itemIndex,a=void 0===o?-1:o,u=n.width,c=void 0===u?300:u,l=n.height,d=void 0===l?250:l,f=n.pageUrl,p=void 0===f?"":f,h=n.onContentVideoStart,v=void 0===h?function(){}:h,m=n.onContentVideoFinish,g=void 0===m?function(){}:m,y=n.onAdTagLoad,_=void 0===y?function(){}:y,b=n.onAdTagLoadFail,w=void 0===b?function(){}:b,E=n.onAdDisplayStart,A=void 0===E?function(){}:E,S=n.onAdDisplayFinish,O=void 0===S?function(){}:S;(0,s.default)(this,t),Object.assign(this,{adContainer:e,player:i,itemIndex:a,width:c,height:d,pageUrl:p,onContentVideoStart:v,onContentVideoFinish:g,onAdTagLoad:_,onAdTagLoadFail:w,onAdDisplayStart:A,onAdDisplayFinish:O})}return(0,c.default)(t,[{key:"create",value:function(){var t=this;return new Promise(function(e,n){try{var r=t.player.code;r=r.replace(/\{RND\}/g,Math.random().toString()).replace(/\{PAGE_URL\}/g,t.pageUrl).replace(/\{DOMAIN\}/g,window.location.hostname).replace(/</g,"<").replace(/>/g,">");var i=t.player.name;f("Inline config",t.player),t.onAdTagLoad(p,i,t.itemIndex),t.adContainer.innerHTML=r;var a=[].concat((0,o.default)(t.adContainer.querySelectorAll("script")));a.forEach(function(e){var n=document.createElement("script");if(n.textContent=e.textContent,e.hasAttributes()){var r=[].concat((0,o.default)(e.attributes));r.forEach(function(t){n.setAttribute(t.name,t.value)})}t.adContainer.insertBefore(n,e),t.adContainer.removeChild(e)}),f("Inline content",r),t.onAdDisplayStart(p,i,t.itemIndex),e()}catch(e){t.onAdTagLoadFail(p,t.player.name,t.itemIndex),f("Inline init error",e),n(e)}})}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Placement=e.SUPPORT_MULTI_PLACEMENTS=e.ADS_DEMAND_NAME=void 0;var i=n(102),o=r(i),a=n(137),s=r(a),u=n(138),c=r(u),l=n(294),d=r(l),f=n(113),p=n(295),h=r(p),v=n(95),m=n(296),g=r(m),y=n(118),_=r(y),b=n(297),w=n(150),E=r(w),A=(0,f.getDebugger)("ads"),S=e.ADS_DEMAND_NAME="SR";e.SUPPORT_MULTI_PLACEMENTS=!1,e.Placement=function(){function t(e,n){var r=n.row,i=n.pos,o=n.player,a=void 0===o?{}:o,u=n.itemIndex,c=void 0===u?-1:u,l=n.subid,d=void 0===l?{}:l,f=n.width,p=void 0===f?400:f,h=n.height,v=void 0===h?300:h,m=n.pageUrl,y=void 0===m?"":m,_=n.onContentVideoStart,b=void 0===_?function(){}:_,w=n.onContentVideoFinish,E=void 0===w?function(){}:w,A=n.onAdTagLoad,S=void 0===A?function(){}:A,O=n.onAdTagLoadSuccess,T=void 0===O?function(){}:O,k=n.onAdTagLoadFail,I=void 0===k?function(){}:k,x=n.onAdDisplayStart,P=void 0===x?function(){}:x,C=n.onAdDisplayFinish,R=void 0===C?function(){}:C,M=n.onAdImpression,L=void 0===M?function(){}:M,D=n.onAdViewableImpression,j=void 0===D?function(){}:D,N=n.onAdViewableIab,F=void 0===N?function(){}:N,U=n.onAdViewedFirstQuartile,q=void 0===U?function(){}:U,V=n.onAdClickThrough,H=void 0===V?function(){}:V,B=n.onAdNoFill,z=void 0===B?function(){}:B,$=n.onDispose,G=void 0===$?function(){}:$,K=n.onPlayerDone,W=void 0===K?function(){}:K,X=n.isOverlayPlayer,J=void 0!==X&&X; (0,s.default)(this,t),Object.assign(this,{adContainer:e,player:a,row:r,pos:i,itemIndex:c,width:p,height:v,pageUrl:y,onContentVideoStart:b,onContentVideoFinish:E,onAdTagLoad:S,onAdTagLoadFail:I,onAdDisplayStart:P,onAdDisplayFinish:R,onAdTagLoadSuccess:T,onAdImpression:L,onAdViewableImpression:j,onAdViewableIab:F,onAdViewedFirstQuartile:q,onAdClickThrough:H,onAdNoFill:z,onDispose:G,onPlayerDone:W,subid:d,isOverlayPlayer:J}),this.demandDeferred=new g.default}return(0,c.default)(t,[{key:"startPassbackTimer",value:function(t){this.passbackAdsPlayer&&this.player.passback_interval&&(A("startPassbackTimer",this.player.passback_interval),this.passbackTimer=setTimeout(this.showPassback.bind(this,t),1e3*this.player.passback_interval))}},{key:"cancelPassbackTimer",value:function(){A("cancelPassbackTimer"),clearTimeout(this.passbackTimer)}},{key:"showPassback",value:function(t){this.cancelPassbackTimer(),this.passbackAdsPlayer&&(this.overlayAdsPlayer&&(A("Placement: Passback called"),this.overlayAdsPlayer.placement.onDispose()),this.onDispose(),t.dispose(),A("Initializing passback"),this.passbackAdsPlayer.initialize())}},{key:"create",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _.default?(this.adContainer.style.width="100%",this.adContainer.style.height=this.height+"px"):(this.adContainer.style.width=this.width+"px",this.adContainer.style.height=this.height+"px"),(0,b.initializeStreamRailSdk)(e).then(function(){t.demandDeferred.resolve()}),this.demandDeferred.promise.then(function(){try{var e=function(t){var e=this;h.default.trigger("placement-created",{dispose:function(){e.onDispose(),t.dispose()}}),this.onAdTagLoadSuccess(S,i,this.itemIndex),A("StreamRail player",t),t.on("contentStart",function(){A("SR Event: contentStart"),e.onContentVideoStart(S,i,e.itemIndex)}),t.on("contentplay",function(){A("SR Event: contentplay"),e.onContentVideoStart(S,i,e.itemIndex)}),t.on("contentEnd",function(){A("SR Event: contentEnd"),e.onContentVideoFinish(S,i,e.itemIndex)}),t.on("contentend",function(){A("SR Event: contentend"),e.onContentVideoFinish(S,i,e.itemIndex)}),t.on("onPlayerDone",function(){A("SR Event: onPlayerDone"),e.onPlayerDone(S,i,e.itemIndex)}),t.on("AdRequest",function(){return A("SR Event: AdRequest")}),t.on("AdResponse",function(){return A("SR Event: AdResponse")}),t.on("AdLoaded",function(){return A("SR Event: AdLoaded")}),t.on("AdError",function(){return A("SR Event: AdError")}),t.on("AdImpression",function(){for(var n=arguments.length,r=Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:{},n=new CustomEvent("spotim-rc-"+t,{detail:(0,s.default)({uid:this.uid},e)});document.dispatchEvent(n)}},{key:"on",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];document.addEventListener("spotim-rc-"+t,function(t){var i=t.detail,a=i.uid,s=(0,o.default)(i,["uid"]);(r||a!==n.uid)&&e(s)},!1)}},{key:"off",value:function(t,e){throw new Error("Not implemented")}}]),t}(),v=new h;e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(137),o=r(i),a=function t(){var e=this;(0,o.default)(this,t),this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return u("StreamRail SDK init"),new Promise(function(e,n){window.$$SPOTIM_SRSDK_CALLED$$?window.$$SPOTIM_SRSDK_RESOLVED$$?e():a.default.on("srs-sdk-resolved",e):(window.$$SPOTIM_SRSDK_CALLED$$=!0,window.srAsyncInit=function(){window.$$SPOTIM_SRSDK_RESOLVED$$=!0,a.default.trigger("srs-sdk-resolved"),e()},function(e,r,i){var o,a=e.getElementsByTagName(r)[0];e.getElementById(i)||(o=e.createElement(r),o.id=i,o.setAttribute("crossorigin","anonymous"),u("Using Old SR Ads player: "+t),t?o.src="https://sdk.streamrail.com/player/sr.ads.js":o.src="https://sdk.streamrail.com/blade/sr.bladex.js",o.onload=function(){u("StreamRail SDK success")},o.onerror=function(){n("StreamRail SDK script load error")},a.parentNode.insertBefore(o,a))}(document,"script","streamrail-jssdk"))})}Object.defineProperty(e,"__esModule",{value:!0}),e.initializeStreamRailSdk=i;var o=n(295),a=r(o),s=n(113),u=(0,s.getDebugger)("ads")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=[].concat((0,a.default)(t.querySelectorAll("[data-spotim-row]")));e.forEach(function(t){t.querySelector('[data-spotim-slot-size="400x300"]')?t.setAttribute("data-spotim-row-size","large"):t.setAttribute("data-spotim-row-size","small")})}Object.defineProperty(e,"__esModule",{value:!0}),e.adjustLayoutForAds=e.subscribeToLayoutEvents=e.fetchUpdatedAdsConfig=e.checkIfAdsAllowed=void 0;var o=n(90),a=r(o),s=n(8),u=r(s),c=n(11),l=r(c),d=n(143),f=n(113),p=n(152),h=n(150),v=r(h),m=n(98),g=n(117),y=(0,f.getDebugger)("ads");window.$$SPOTIM_ACTIVATE_RC_CALLED$$=!1;e.checkIfAdsAllowed=function(t,e){return t.allowAds()||e},e.fetchUpdatedAdsConfig=function(){var t=(0,l.default)(u.default.mark(function t(e,n){var r,i;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(0,m.resolveUserPlatform)(),!(0,m.useAdvancedTargeting)(n,r)){t.next=15;break}return y("advanced targeting enabled. Fetching client ads config"),t.prev=3,i=(0,g.getAdvancedTargetingParams)(),t.next=7,(0,m.fetchAdsConfig)(e,r,i);case 7:n=t.sent,y("client ads config success",n),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(3),y("ERROR: client ads config fail",t.t0),n=null;case 15:return t.abrupt("return",n);case 16:case"end":return t.stop()}},t,this,[[3,11]])}));return function(e,n){return t.apply(this,arguments)}}(),e.subscribeToLayoutEvents=function(t){function e(){var e=[].concat((0,a.default)(t.querySelectorAll("[data-spotim-slot-active]"))),n=e.map(function(t){return t.getAttribute("data-spotim-slot-row")+"-"+t.getAttribute("data-spotim-slot-pos")+"-"+t.getAttribute("data-spotim-slot-size")});t.setAttribute("data-spotim-active-slots",n.join(" "));var r=([].concat((0,a.default)(t.querySelectorAll("[data-spotim-slot-showing]"))),e.map(function(t){return t.getAttribute("data-spotim-slot-row")+"-"+t.getAttribute("data-spotim-slot-pos")+"-"+t.getAttribute("data-spotim-slot-size")}));t.setAttribute("data-spotim-showing-slots",r.join(" "))}v.default.on("update-ad-slot",function(n){var r=t.querySelector('[data-spotim-slot-row="'+n.row+'"][data-spotim-slot-pos="'+n.pos+'"]');"show"===n.adDisplay?(r.setAttribute("data-spotim-slot-active",""),300===parseInt(n.width)&&250===parseInt(n.height)?r.setAttribute("data-spotim-slot-size","300x250"):400===parseInt(n.width)&&300===parseInt(n.height)?r.setAttribute("data-spotim-slot-size","400x300"):r.removeAttribute("data-spotim-slot-size")):(r.removeAttribute("data-spotim-slot-active"),r.removeAttribute("data-spotim-slot-size")),e(),i(t)}),v.default.on(p.AD_DISPLAY_STARTED,function(n){var r=(n.row,n.pos,t.querySelector('[data-spotim-slot-row="'+n.row+'"][data-spotim-slot-pos="'+n.pos+'"]'));r.setAttribute("data-spotim-slot-showing",""),e()}),v.default.on(p.AD_DISPLAY_FINISHED,function(n){var r=(n.row,n.pos,t.querySelector('[data-spotim-slot-row="'+n.row+'"][data-spotim-slot-pos="'+n.pos+'"]'));r.removeAttribute("data-spotim-slot-showing"),e()})},e.adjustLayoutForAds=function(t){if((0,m.isPhone)())for(var e=[].concat((0,a.default)(t.querySelectorAll("."+d.cssSelectors.items))),n=1;n